Building the documentation¶
Use Python 3.12 for the documentation toolchain. From the repository root, create an isolated documentation environment and build:
python3.12 -m venv build/docs-venv
. build/docs-venv/bin/activate
python -m pip install -e '.[docs]'
python scripts/check_documentation.py
Open build/docs/html/index.html in a browser. Generated HTML stays under the
ignored build/ directory.
This command generates the rendered component PNG gallery with Pillow, builds Sphinx with warnings treated as errors, checks the retained page/fragment inventory, verifies root-export coverage and CLI help coverage, and runs the exact Python examples included in the integration guide. It requires no FFmpeg. For a faster prose-only preview, run:
python docs/sphinx/examples/render_components.py
python -m sphinx -W --keep-going -b html docs/sphinx build/docs/html
Published addresses follow Links for articles and integrations. Keep old entries in
tests/fixtures/documentation-urls.json and add newly published page/anchor
targets; do not remove entries to make a broken-link check pass.
API documentation follows the package’s explicit exports and their docstrings. Add or improve docstrings alongside code changes. This site uses a dedicated source directory so local research reports and acquired source collections are not automatically included in the published documentation.
Pull requests build the site without deploying. Successful builds on main
publish through the GitHub Pages environment. The workflow can also be run
manually on main. GitHub Pages must use GitHub Actions as its publishing
source in repository settings.
The repository can remain private. For a private personal repository, GitHub Pages requires GitHub Pro. The published site is public, so only the dedicated Sphinx sources and generated API documentation are uploaded. Implementation source-code pages are not generated.