Merged
Conversation
….rst and ensuring Sphinx installation is correctly configured in the workflow
…enabling autosummary generation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request improves the documentation build and appearance by updating Sphinx configuration to use the ReadTheDocs theme and enhancing API documentation structure. The changes include adding theme selection logic, enabling autosummary extensions, and updating the GitHub Actions workflow to install necessary dependencies.
- Updated Sphinx configuration to support
sphinx_rtd_themewith fallback toalabaster - Added autosummary extension and theme options for better navigation
- Enhanced documentation workflow to install theme dependencies and local package
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pyproject.toml | Version bump from 0.1.17 to 0.1.18 |
| docs/source/index.rst | Added new toctree section for package-level API documentation |
| docs/source/conf.py | Added theme selection logic, autosummary extension, and theme configuration |
| .github/workflows/docs-pages.yaml | Updated to install sphinx_rtd_theme and local package dependencies |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
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.
This pull request improves the documentation build and appearance by updating the Sphinx configuration and workflow. The main changes include adding support for the
sphinx_rtd_theme, enabling autosummary for cleaner API docs, and updating the documentation workflow to ensure all dependencies are installed. These updates will result in a more modern look for the docs and better API reference pages.Documentation build and theme improvements:
.github/workflows/docs-pages.yamlto installsphinx_rtd_themeand the local package before building docs, ensuring all dependencies are available for the documentation build.docs/source/conf.pyto usesphinx_rtd_themeif available, falling back toalabasterotherwise, and added advanced theme options for navigation.autosummaryand configured Sphinx extensions for improved API documentation, includingautosummary_generateandautosummary_imported_membersoptions. [1] [2]API documentation structure:
docs/source/index.rstto include a new toctree for package-level API documentation, improving discoverability of modules and subpackages.General improvements:
importlib.util) indocs/source/conf.pyfor dynamic theme selection.