CLIMADA Documentation#

The CLIMADA documentation consists of .rst files and Jupyter Notebooks. It is built into an HTML webpage by the Sphinx package.

The online documentation is automatically built when the main or develop branch are updated. Additionally, documentation previews will be built for every pull request on GitHub, and will be displayed under “Checks”.

Note that the online documentation allows you to switch versions. By default, you will see the stable version, which refers to the latest release. You can switch to latest, which refers to the latest version of the develop branch.

Local Build#

You can also build and browse the documentation on your machine. This can be useful if you want to access the documentation of a particular feature branch or to check your updates to the documentation.

For building the documentation, you need to follow the advanced installation instructions. Make sure to install the developer requirements as well.

Depending on your package manager, run the following commands:

uv#

Navigate to the doc directory. Then run the make command in the environment managed by uv:

cd climada_python/doc
uv run -- make html

Mamba#

Activate the climada_env and navigate to the doc directory:

conda activate climada_env
cd climada_python/doc

Next, execute make (this might take a while when executed for the first time)

make html

Local Build Path#

The documentation will be placed in doc/_build/html. Simply open the page doc/_build/html/index.html with your browser.

Updating the Documentation Environment for Readthedocs.org#

The online documentation is built by readthedocs.org. It relies on the environment specifications in the uv.lock lockfile. See the developer guidelines on dependency management on how to upgrade the package specifications.