We use Sphinx to generate the QUEENS documentation. It automatically builds the html documentation from the docstrings.
We believe that documentation is essential and therefore welcome any improvements 😊
To build the documentation, first set up the QUEENS development environment as described in the README.
Next, register the environment as a Jupyter kernel such that the tutorial notbooks can be run while building the documentation:
pixi run -e dev python -m ipykernel install --user --name queens --display-name "Python (queens)"When building the documentation on your machine for the first time or after adding new modules or
classes to QUEENS, one needs to first rebuild the autodoc index by running:
cd <queens-root-directory>
pixi run -e dev sphinx-apidoc -o doc/source src/ -fMTTo actually build the html-documentation, navigate into the doc folder and run the make command:
cd doc
pixi run -e dev sphinx-build -b html -d build/doctrees source build/html -WYou can now view the documentation in your favorite browser by opening build/html/index.html.