Building and maintaining the documentation#

The manual uses Sphinx, MyST Markdown, and the PyData Sphinx Theme. API pages are generated from NumPy-style docstrings. Tutorials use executable MyST notebooks. Build from the repository root:

uv sync --group docs
uv run sphinx-build -E -W --keep-going -b html docs docs/_build/html

Open docs/_build/html/index.html to inspect the result. Check navigation, cross-references, equations, tables, and figures as well as the build log.

Executed tutorial caches#

The notebook execution cache in docs/.jupyter_cache is committed. It lets Read the Docs reuse tutorial results instead of repeating expensive retrievals. After editing a tutorial or changing behaviour that affects its output, rebuild locally and commit the refreshed cache with the source change, and read the refreshed outputs: a notebook can execute cleanly and still show a changed result.