Skip to content

setting up readthedocs#249

Merged
K20shores merged 2 commits intomainfrom
readthedocs
Feb 9, 2026
Merged

setting up readthedocs#249
K20shores merged 2 commits intomainfrom
readthedocs

Conversation

@K20shores
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Sets up documentation builds on Read the Docs and removes the previous GitHub Pages deployment workflow.

Changes:

  • Add a .readthedocs.yaml configuration to build Sphinx docs on Read the Docs.
  • Simplify Sphinx conf.py release/version handling and remove the theme’s version switcher config.
  • Remove the GitHub Actions workflow that built and deployed docs to gh-pages.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
docs/source/conf.py Updates project metadata, changes version parsing, and removes version switcher theme config.
.readthedocs.yaml Introduces Read the Docs build configuration pointing at the Sphinx config and requirements.
.github/workflows/gh-pages.yml Removes the GitHub Pages docs deployment workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/source/conf.py
Comment on lines +19 to +25
# read the version from the cmake files
with open(f'../../CMakeLists.txt', 'r') as f:
for line in f:
match = re.match(regex, line)
if match:
version = match.group(1)
release = f'{version}'
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

open('../../CMakeLists.txt') is resolved relative to the current working directory (which is typically the repo root on Read the Docs), so this path will point outside the repo and the docs build will fail with FileNotFoundError. Resolve the path relative to conf.py (e.g., via Path(__file__).resolve()), and consider a small fallback if the file can't be read so RTD builds remain robust.

Copilot uses AI. Check for mistakes.
Comment thread docs/source/conf.py
for line in f:
match = re.match(regex, line)
if match:
version = match.group(1)
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once a matching project(... VERSION ...) line is found, the loop should break; otherwise the file is scanned fully on every Sphinx run and later matches (including in comments) could override the intended version.

Suggested change
version = match.group(1)
version = match.group(1)
break

Copilot uses AI. Check for mistakes.
Comment thread docs/source/conf.py
match = re.match(regex, line)
if match:
version = match.group(1)
release = f'{version}'
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor cleanup: release = f'{version}' doesn’t need an f-string; also after removing the env-var based version logic, the os import is no longer used and can be dropped to avoid unused-import warnings in linters.

Copilot uses AI. Check for mistakes.
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.00%. Comparing base (5f984f1) to head (0ed34ea).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #249   +/-   ##
=======================================
  Coverage   70.00%   70.00%           
=======================================
  Files           5        5           
  Lines          10       10           
=======================================
  Hits            7        7           
  Misses          3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@K20shores K20shores merged commit 5d8dd61 into main Feb 9, 2026
21 checks passed
@K20shores K20shores deleted the readthedocs branch February 9, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants