Publishing on Read the Docs
Published documentation (HTML, “latest” from the default branch) lives at:
https://coldcast.readthedocs.io/en/latest/
A stable URL tracks the most recent git tag once you publish version tags; until then, use latest for day-to-day browsing.
This repository includes a Read the Docs config file:
.readthedocs.yaml at the repo root. It:
Uses Ubuntu 24.04 and Python 3.11.
Installs system packages
libhdf5-devandlibnetcdf-devsonetCDF4wheels/builds succeed when importing the package for autodoc.Runs
pip install .from the repository root, thenpip install -r docs/requirements.txt.Builds HTML with Sphinx using
docs/conf.py.
Steps (for maintainers)
Sign in at https://readthedocs.org/ (e.g. with your GitHub account).
Click Import a project and select the coldcast GitHub repository.
Under Admin → Advanced Settings, set Configuration file to
.readthedocs.yamlif the UI does not pick it up automatically.Save and trigger a build. The default latest version tracks your default branch; stable appears when you publish git tags (optional).
Troubleshooting
If the build fails on importing netCDF4, confirm
build.apt_packagesin.readthedocs.yamlmatches what your environment needs; RTD’s images change over time.If autodoc cannot import
coldcast, ensuresys.pathindocs/conf.pyincludessrc(already set) or rely onpip install .(configured) so the package is onPYTHONPATH.If the project shows “Build failed” on Read the Docs, open the failing build log; missing system libraries and import errors during Sphinx static imports are the usual causes.
Warnings: you can add
sphinx-build -Win CI to treat warnings as errors once the doc set is stable.