Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.26 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.26 KB

📖 HTML documentation

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 😊

👩‍🏫 Build the documentation

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/ -fMT

To 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 -W

You can now view the documentation in your favorite browser by opening build/html/index.html.