- Ensure you have the following packages installed and available in your Python path:
- quantnet_controller
- quantnet_agent
- quantnet_mq
pip install "sphinx<9" sphinx-rtd-theme sphinx-click readthedocs-sphinx-search sphinxcontrib.bibtex sphinx-toolbox pyyaml
- Clone the docs repository
git clone git@github.com:quant-net/qn-docs.git
- Make the HTML documents
cd qn-docs
make html
- Use a browser to view
_build/html/index.html
The documentation supports multiple versions using a build script
(build_docs.py) that iterates over entries in versions.yaml and the
main branch. A version selector flyout panel appears at the bottom of
the sidebar, matching the Read the Docs style.
For day-to-day development, the standard single-version build works as usual:
make html
python build_docs.py --output-dir ./pages
This builds latest from main and each version listed in versions.yaml
into subdirectories under ./pages/ (e.g., ./pages/latest/, ./pages/1.0/).
When a new quantnet_controller release is made:
- Ensure the
qn-docscontent is updated for the release. - Tag the commit:
git tag v<MAJOR>.<MINOR>.<PATCH> - Push the tag:
git push origin v<MAJOR>.<MINOR>.<PATCH> - Add the version to
versions.yaml:"<MAJOR>.<MINOR>": tag: "v<MAJOR>.<MINOR>.<PATCH>"
- Commit and push
versions.yamltomain. - The CI workflow will automatically build and deploy all versions.
Documentation is deployed to GitHub Pages via the CI workflow. Pushes to
main and version tags (v*) trigger a full rebuild of all versions.