This site was recommended at a webinar I attended on teaching computing skills in a Statistics/Data Science class. Documentation can be split into four different categories: tutorials, how-to guides, technical reference and explanation, and this site describes how to structure each of these types of documentation.
Daniele Procida. The documentation system. Available in html format.