setting up for readthedocs#923
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #923 +/- ##
=======================================
Coverage 94.63% 94.63%
=======================================
Files 68 68
Lines 3185 3185
=======================================
Hits 3014 3014
Misses 171 171 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the documentation build/deploy setup toward Read the Docs by adding RTD configuration, a conda environment definition, and adjusting the Sphinx configuration (including generating Doxygen XML during RTD builds).
Changes:
- Add Read the Docs config (
.readthedocs.yaml) and a conda environment (environment.yml) for docs builds. - Update Sphinx config to build Doxygen XML on RTD and switch to
pydata-sphinx-theme. - Remove GitHub Pages deployment workflow and the version switcher JSON.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
environment.yml |
Adds a conda environment definition intended for RTD docs builds. |
docs/source/conf.py |
Adds RTD-specific Doxygen XML generation and updates theme/options/metadata. |
docs/source/_static/switcher.json |
Removes the version switcher configuration data. |
docs/requirements.txt |
Switches Sphinx theme dependency to pydata-sphinx-theme. |
docker/Dockerfile.docs |
Removes some tooling packages from the docs Docker image. |
.readthedocs.yaml |
Adds RTD build configuration pointing to the conda env and Sphinx config. |
.github/workflows/gh_pages.yml |
Removes the GitHub Pages docs deployment workflow. |
Comments suppressed due to low confidence (1)
docs/source/conf.py:64
- The version parsing opens '../../CMakeLists.txt' via a relative path. Sphinx/Read the Docs often runs with a different working directory, which can make this path invalid. Use an absolute path based on REPO_ROOT_DIR (e.g., join(REPO_ROOT_DIR, 'CMakeLists.txt')) so the version extraction is stable across builders.
regex = r'project\(\w+\s+VERSION\s+(\d+\.\d+\.\d+)'
version = '0.0.0'
# read the version from the cmake files
with open(f'../../CMakeLists.txt', 'r') as f:
for line in f:
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
boulderdaze
approved these changes
Feb 8, 2026
- Install pip deps via conda environment instead of ignored python.install section - The python.install section in .readthedocs.yaml is silently ignored when using conda environments. Move pip dependencies into environment.yml (referencing docs/requirements.txt) so they are installed during conda env creation. Also fix theme package to match what conf.py actually uses. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> - Update docs/source/conf.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
5135248 to
654c506
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace github pages with readthedocs which automatically tracks different versions.
Because we require doxygen and breathe, we have to make conf.py run cmake to generate the xml for breathe to ingest. This is what breathe suggests