# CLIMADA Documentation The CLIMADA documentation consists of ``.rst`` files and [Jupyter](https://jupyter.org/) Notebooks. It is built into an HTML webpage by the [Sphinx](https://www.sphinx-doc.org/en/master/index.html) package. The [online documentation](https://climada-python.readthedocs.io/en/stable/) is automatically built when the `main` or `develop` branch are updated. Additionally, documentation previews will be built for every [pull request](https://github.com/CLIMADA-project/climada_python/pulls) 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](https://climada-python.readthedocs.io/en/latest/guide/install.html#advanced-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`](https://readthedocs.org/). It relies on the environment specifications in the `uv.lock` lockfile. See the developer guidelines on [dependency management](development/dependency-management.rst) on how to upgrade the package specifications.