How to docΒΆ
Just create a doc string for each function, method, class and module or contribute by writing or enhancing these doc strings for existing entities.
If you write a new module, please include it in the API documentation: Add a corresponding RST file in the docs/src folder and reference the new module in the RST file of the parent module.
Check your documentation by building it locally, look out for new reference errors.
Build the documentation locally
The documentation is hosted at ReadTheDocs and built automatically on every push to GitHub.
To build the documentation locally:
Install the Python packages
sphinx,furoandsphinx_autorunClone the sugar repository
Install sugar, i.e. in editable mode
cd sugar; pip install -e .Change to the
docsdirectoryBuild the documentation
sphinx-build -anE . _buildThe documentation is now located in the
docs/_builddirectory