This repository contains best-practice templates to help build documentation for open-source software, which incidentally is directly applicable to other domains too.
Here we provide tips for using these templates.
The templates are categorised in line with standard DITA documentation types:
Concept: Describes how and why things work. Concepts are normally written to help the reader understand a technology, prior to using it.
Task: Gives specific instructions about how to get something done. In practice, Tasks tend to have a specific goal and usually consist of a set of numbered steps that the reader can follow to achieve the goal.
Reference: Contains structured information or specifications that users need to make a product work. Reference sections should comprehensively catalog data such as functions and their parameters, return codes and error messages.
Our templates follow these documentation types, and you should find that your information naturally fits into them as you write.
We like to compare documentation types to aisles in a grocery store. Each aisle includes related templates, which you can think of as ingredients. Use these ingredients in documentation cookbooks to whip up docs for your readers.
When writing your documentation, it helps to think about the following:
- Who are you writing for?
- What will they be trying to accomplish when they read the documentation?
- The information type. Is it a concept, a task or reference?
Templates we currently offer:
Template name | Documentation type |
---|---|
API Project overview | Concept |
API Quickstart | Concept, Task |
API Reference | Reference |
Discussion | Concept |
How-to | Task |
Tutorial | Concept, Task |
General reference entry | Reference |
Logging reference | Reference |
Recipe name | Description | Constituent templates |
---|---|---|
API reference | One chapter in your full API documentation | Reference entries (multiple reference) + error information (reference) + throttling (concept) + authentication (task) |
API guide: good | The starter set for API docs | API project overview + setup instructions (task) + Reference section (see recipe above) + Quickstart |
API guide: better | Improved API docs, after learning about users | API project overview + setup instructions (task) + Reference(s) + Quickstart + How-to(s) |