This directory contains a Sphinx documentation site suitable for ReadTheDocs. It is intentionally plain and library-style: installation, quick starts, API reference pages, examples, and contributor guidance are split into small pages.
From the repository root:
python -m venv .venv
. .venv/bin/activate
python -m pip install -r documentation/requirements.txt
sphinx-build -b html documentation documentation/_build/htmlOpen documentation/_build/html/index.html in a browser.
- Import the Git repository in ReadTheDocs.
- In the project settings, set the documentation configuration file to
documentation/.readthedocs.yamlif your ReadTheDocs project allows a custom config path. If it requires a root-level config file, copy or symlink this file to.readthedocs.yamlat the repository root. - Keep the Sphinx configuration path as
documentation/conf.py. - Use Python 3.11 or newer.
- Let ReadTheDocs install
documentation/requirements.txt.
Build HTML documentation:
sphinx-build -b html documentation documentation/_build/htmlTreat warnings as errors:
sphinx-build -W -b html documentation documentation/_build/htmlClean generated documentation:
rm -rf documentation/_build