## CADET Documentation


To build the documentation locally, in the `doc` folder, create the environment with Sphinx, Doxygen and the other dependencies and activate it:

```
conda env create -f environment.yml
conda activate cadet-docs
```

The Sphinx build runs Doxygen itself for the C++ API reference and fails if it is not installed.

Then, in the `doc` folder, run:

`sphinx-build -b html . build` 

The output is in the `build` directory and can be opened with any browser.

To build the documentation for all releases and the master branch, run:

`sphinx-multiversion ./ ./build/`. 

Any changes to the documentation will automatically be pushed to the github-pages repository (https://github.com/cadet/cadet.github.io) using github actions.
