Generating and Previewing Documentation

This guide explains how to build and preview the documentation for pyremap.

Prerequisites

Ensure you have the following installed:

  • Miniforge or Micromamba

  • The required dependencies listed in dev-spec.txt:

    conda create -n pyremap_dev --file dev-spec.txt
    conda activate pyremap_dev
    python -m pip install --no-deps --no-build-isolation -e .
    

Building the Documentation

To build the documentation, run the following command:

cd docs
DOCS_VERSION=main make versioned-html

This will generate the static site in the _build/html/main directory.

Previewing the Documentation

To preview the documentation locally, open the index.html file in the _build/html/main directory with your browser or try:

cd _build/html
python -m http.server 8000

Then, open http://0.0.0.0:8000/main/ in your browser.

Notes

  • Make sure all documentation changes are committed before building or previewing.

  • Verify the formatting and content in the generated HTML files before submitting changes.