improve documentation build process by removing warnings#380
Merged
sophiamaedler merged 7 commits intomainfrom Mar 1, 2026
Merged
improve documentation build process by removing warnings#380sophiamaedler merged 7 commits intomainfrom
sophiamaedler merged 7 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR aims to reduce Sphinx warning noise and make documentation builds more reliable by adjusting the docs build tooling, suppressing a known warning, cleaning up broken/duplicate references, and tweaking dependency/tooling configs.
Changes:
- Updated Sphinx build invocation and configuration to reduce warning noise (
docs/Makefile,docs/conf.py). - Cleaned up documentation references / toctrees and suppressed duplicate autodoc indexing warnings (
docs/**/*.rst). - Adjusted dependencies and tooling configuration for docs and type checking (
requirements/*.txt,.pre-commit-config.yaml).
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
docs/Makefile |
Switches Sphinx invocation to interpreter-based module execution and improves target handling. |
docs/conf.py |
Suppresses the config.cache warning to reduce non-actionable noise. |
docs/index.rst |
Fixes/adjusts links and re-adds notebook page to toctree to avoid warnings. |
docs/pages/workflow.rst |
Improves link text and references within the workflow documentation. |
docs/pages/workflow/segmentation_workflow.rst |
Fixes a broken :ref: target for the DAPI cellpose section. |
docs/pages/module/processing.rst |
Adds :no-index: to reduce duplicate object description warnings from autodoc. |
docs/pages/module/tools/ml.rst |
Adds :no-index: to reduce duplicate object description warnings from autodoc. |
src/scportrait/io/h5sc.py |
Re-formats docstring sections to avoid docutils parsing warnings. |
requirements/requirements_docs.txt |
Adds ipython for notebook lexer support in docs builds. |
requirements/requirements.txt |
Adds a setuptools upper bound intended to preserve pkg_resources compatibility. |
.pre-commit-config.yaml |
Pins mypy’s target --python-version to 3.10 to match project support. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
This PR reduces Sphinx warning noise and makes docs builds more reliable.
Docs build tooling
docs/Makefile: switched to interpreter-based Sphinx invocation and improved make target handling.docs/conf.py: suppressed known non-actionableconfig.cachewarning.Docs warning cleanup
docs/index.rstdocs/pages/workflow.rstdocs/pages/workflow/segmentation_workflow.rst:no-index:to specific autodoc blocks causing duplicate object description warnings:docs/pages/module/processing.rstdocs/pages/module/tools/ml.rstdocs/index.rst).Dependency adjustments
ipythonto docs requirements for notebook lexer support.setuptools<81to maintain currentpkg_resourcescompatibility in dependency stack.Docstring formatting
numpy_to_h5scdocstring formatting insrc/scportrait/io/h5sc.pyto avoid docutils option-list parsing warnings.Pre-commit mypy
--python-version=3.10in.pre-commit-config.yamlto match project syntax/features.