-
Notifications
You must be signed in to change notification settings - Fork 0
How to doc
Tom Eulenfeld edited this page Jan 24, 2025
·
4 revisions
Just create a doc strings 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.
The documentation is hosted at ReadTheDocs and build automatically on every push to GitHub.
To build the documentation locally:
- Install the Python packages
sphinx
,furo
andsphinx_autorun
- Clone the sugar repository
- Install sugar, i.e. in editable mode
cd sugar; pip install -e .
- Change to the
docs
directory - Build the documentation
sphinx-build -anE . _build
- The documentation is now located in the
docs/_build
directory