Install miniconda first.
conda env create -f environment.yml
conda activate docs
Install Sphinx and plugins:
pip install sphinx autodoc recommonmark sphinx-rtd-theme
Generate HTML:
cd docs
make html
Run HTTP server:
cd docs/_build/html
python -m http.server 8000
Don't forget to change the version in docs/conf.py
before generating.
release = "<VERSION>"
Generated documentation will be in docs/_build/html
.
Documentation for GitHub Pages is placed in following branch
gh-pages
.
Folders:
dev
folder contains current documentation for default branch.0.12.0
folder and other similar folders contain documentation for releases.latest
folder is a link to the latest release folder.
Copy generated documentation into corresponding folder and create pull request
to gh-pages
branch.