⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@ParticularlyPythonicBS
Copy link
Member

@ParticularlyPythonicBS ParticularlyPythonicBS commented Jan 15, 2026

the nav bar has regressions that will be fixed with the future documentation reorg.

Summary by CodeRabbit

  • Chores
    • Switched the documentation theme and updated related styling and branding (new logo assets).
    • Updated doc build/dev dependencies to align with the new theme.
  • Documentation
    • Improved diagram support: enabled zoom, fullscreen, and additional diagram types.
    • Added repository/issue/edit buttons and navigation depth options for docs.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Jan 15, 2026

Walkthrough

Switched the Sphinx documentation theme from sphinx_rtd_theme to sphinx_book_theme: updated Sphinx config, replaced the docs optional dependency, adjusted pinned dev requirements, changed logo paths, and enabled Mermaid display options.

Changes

Cohort / File(s) Summary
Docs configuration
docs/source/conf.py
Replaced html_theme value with sphinx_book_theme; removed legacy theme setup; added html_theme_options (repository_url, repository/issues/edit buttons, path_to_docs, show_navbar_depth); updated html_logo and latex_logo; added sphinx.ext.imgconverter and Mermaid display flags (mermaid_d3_zoom, mermaid_fullscreen, mermaid_include_elk, mermaid_include_mindmap).
Project metadata
pyproject.toml
Replaced optional dependency sphinx-rtd-theme>=2.0.0 with sphinx-book-theme>=1.1.3 under [project.optional-dependencies] docs.
Dev requirements
requirements-dev.txt
Replaced sphinx-rtd-theme entries with sphinx-book-theme (pinned) and added pydata-sphinx-theme, accessible-pygments, soupsieve plus updated “via” comments and ordering for Sphinx/theme-related packages.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main changes: switching documentation theme from Read the Docs to Sphinx Book Theme and updating logo files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings


📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5ae8cb1 and 9ab789d.

⛔ Files ignored due to path filters (5)
  • docs/source/assets/logo.pdf is excluded by !**/*.pdf
  • docs/source/assets/logo.svg is excluded by !**/*.svg
  • docs/source/assets/logo_bottom_text.pdf is excluded by !**/*.pdf
  • docs/source/assets/logo_bottom_text.svg is excluded by !**/*.svg
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • docs/source/conf.py
  • pyproject.toml
  • requirements-dev.txt
🔇 Additional comments (5)
pyproject.toml (1)

52-61: LGTM!

The dependency swap from sphinx-rtd-theme to sphinx-book-theme>=1.1.3 is consistent with the theme migration in conf.py and aligns with the resolved version (1.1.4) in requirements-dev.txt.

requirements-dev.txt (1)

1-232: LGTM!

This auto-generated lockfile correctly reflects the transitive dependencies of sphinx-book-theme, including pydata-sphinx-theme, accessible-pygments, beautifulsoup4, and soupsieve. The dependency graph comments are properly updated.

docs/source/conf.py (3)

64-64: Good addition of image converter extension.

Adding sphinx.ext.imgconverter enables SVG to PDF conversion for LaTeX builds if needed. Note that this requires ImageMagick to be installed on the build system.


123-131: Theme configuration looks correct.

The sphinx_book_theme options are well-configured with repository integration buttons and appropriate navbar depth. This aligns with the dependency changes in pyproject.toml.


132-133: Logo files are correctly positioned.

Both logo files exist at the specified paths: docs/source/assets/logo_bottom_text.pdf and docs/source/assets/logo_bottom_text.svg.

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
docs/source/conf.py (1)

142-145: Remove unsupported mermaid configuration option mermaid_include_mindmap.

Three of these configuration options are supported in sphinxcontrib-mermaid 1.2.3: mermaid_d3_zoom, mermaid_fullscreen, and mermaid_include_elk. However, mermaid_include_mindmap does not appear in the official configuration options for this version and should be removed.

🤖 Fix all issues with AI agents
In `@docs/source/conf.py`:
- Around line 122-125: Remove or clarify the commented-out Sphinx setup snippet:
either delete the three commented lines that define the setup(app: Any) function
and app.add_css_file('my_theme.css') if the custom CSS is no longer needed, or
keep them but replace the commented block with a short explanatory comment
stating why the setup/add_css_file override is preserved for potential future
use.
- Around line 136-137: The LaTeX build will fail because latex_logo and
html_logo point to SVG files; either configure an image converter or use non‑SVG
assets: add the appropriate converter to the Sphinx extensions list (e.g.,
include 'sphinx.ext.imgconverter' and ensure ImageMagick is installed, or
include 'sphinxcontrib.svg2pdfconverter' if you prefer vector PDF conversion) so
Sphinx can convert SVGs for LaTeX, or replace the value of latex_logo (and
optionally html_logo) with a preconverted PNG/PDF file.
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4b49909 and 5ae8cb1.

⛔ Files ignored due to path filters (3)
  • docs/source/assets/logo.svg is excluded by !**/*.svg
  • docs/source/assets/logo_bottom_text.svg is excluded by !**/*.svg
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • docs/source/conf.py
  • pyproject.toml
  • requirements-dev.txt
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: setup and test (macos-latest, 3.13)
  • GitHub Check: setup and test (macos-latest, 3.12)
  • GitHub Check: setup and test (windows-latest, 3.12)
  • GitHub Check: setup and test (windows-latest, 3.13)
🔇 Additional comments (3)
pyproject.toml (1)

52-61: LGTM!

The dependency change from sphinx-rtd-theme to sphinx-book-theme>=1.1.3 correctly aligns with the theme migration. The version constraint is compatible with the pinned version (1.1.4) in requirements-dev.txt.

docs/source/conf.py (1)

127-135: LGTM!

The sphinx_book_theme configuration and options are correctly set up. The repository integration buttons and navigation depth settings are appropriate for the project.

requirements-dev.txt (1)

1-4: LGTM!

This is an auto-generated lockfile from uv pip compile. The new dependencies (accessible-pygments, pydata-sphinx-theme, beautifulsoup4, soupsieve) are transitive dependencies brought in by sphinx-book-theme, which builds on top of pydata-sphinx-theme. The dependency resolution is correct.

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
docs/source/conf.py (1)

138-141: mermaid_include_mindmap is not a valid sphinxcontrib-mermaid configuration option.

Three of the four options are supported:

  • mermaid_d3_zoom
  • mermaid_fullscreen
  • mermaid_include_elk

However, mermaid_include_mindmap is not a sphinxcontrib-mermaid configuration option. Mindmap is a Mermaid diagram type, not a configuration flag. To use mindmap, ensure your mermaid_version supports it or register the mindmap plugin via mermaid_init_config instead.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5ae8cb1 and 9ab789d.

⛔ Files ignored due to path filters (5)
  • docs/source/assets/logo.pdf is excluded by !**/*.pdf
  • docs/source/assets/logo.svg is excluded by !**/*.svg
  • docs/source/assets/logo_bottom_text.pdf is excluded by !**/*.pdf
  • docs/source/assets/logo_bottom_text.svg is excluded by !**/*.svg
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • docs/source/conf.py
  • pyproject.toml
  • requirements-dev.txt
🔇 Additional comments (5)
pyproject.toml (1)

52-61: LGTM!

The dependency swap from sphinx-rtd-theme to sphinx-book-theme>=1.1.3 is consistent with the theme migration in conf.py and aligns with the resolved version (1.1.4) in requirements-dev.txt.

requirements-dev.txt (1)

1-232: LGTM!

This auto-generated lockfile correctly reflects the transitive dependencies of sphinx-book-theme, including pydata-sphinx-theme, accessible-pygments, beautifulsoup4, and soupsieve. The dependency graph comments are properly updated.

docs/source/conf.py (3)

64-64: Good addition of image converter extension.

Adding sphinx.ext.imgconverter enables SVG to PDF conversion for LaTeX builds if needed. Note that this requires ImageMagick to be installed on the build system.


123-131: Theme configuration looks correct.

The sphinx_book_theme options are well-configured with repository integration buttons and appropriate navbar depth. This aligns with the dependency changes in pyproject.toml.


132-133: Logo files are correctly positioned.

Both logo files exist at the specified paths: docs/source/assets/logo_bottom_text.pdf and docs/source/assets/logo_bottom_text.svg.

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.

@ParticularlyPythonicBS ParticularlyPythonicBS merged commit e0093b3 into unstable Jan 15, 2026
9 checks passed
@ParticularlyPythonicBS ParticularlyPythonicBS deleted the docs/theme_update branch January 15, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants