-
Notifications
You must be signed in to change notification settings - Fork 46
Adding New Documentation Pages
A new documentation page is required for new modules, classes, and/or functions.
On your branch, you can test the docs build locally, and when it is submitted as a pull request, Read the Docs will build and preview your documentation.
-
Create a new rst file in the docs folder for your class.
For an example of the Sphinx auto generation functionality, see docs/hybrid/flicker.rst for
autoclass
andautomodule
.Getting the comments to render properly depends on correct formatting. Refer to Sphinx RTD Tutorial on Writing Docstrings
-
Add the file to the index.rst (or another table of contents, if applicable)
-
Install your development version of HOPP:
pip install --editable .
-
Install the Read the Docs theme:
pip install sphinx-rtd-theme
-
Build locally:
cd docs; make html
. See if there are any errors or warnings, which will cause the ReadTheDocs build to fail the check for the pull request. The documentation will be indocs/_build/html/index.html