Documentation falls into two categories: documentation for users and documentation for developers. Developer documentation can be further broken down into in-line and standalone documentation. Here we focus on standalone documentation for developers. For information on in-line documentation, visit here <www.ihavenotdonethis.wat>.
Note that while it is not necessary for developers to contribute standalone documentation, we will NOT accept pull requests without sufficient in-line documentation.
When writing any kind of documenation, in-line or standalone, please try to adhere to the following conventions:
To generate the standalone documentation, we use a library called Sphinx. You can build the documentation locally or read it online at ReadTheDocs.
When working on standalone documentation, please use the following conventions:
All documentation can be found in the docs/ folder of the root application. Documentation intended for developers is contained in the docs/developer/ folder. Each HTML page is built from an .rst file in the docs folder.
To build the HTML documentation, run make html from the docs/ directory. This will generate HTML in docs/_build.
Sphinx uses reStructuredText files to build HTML documentation. Every standalone HTML page is built from an .rst file. Each .rst file contains plain-text that is parsed and used to generate HTML.
Use these resources to assist in documentation:
For a quick reference, see A beginner’s guide to reStructuredText.