Skip to content

Fix strict Sphinx documentation builds - #137

Open
ryanchou1994 wants to merge 1 commit into
eyeseast:mainfrom
ryanchou1994:fix/sphinx-documentation-build
Open

Fix strict Sphinx documentation builds#137
ryanchou1994 wants to merge 1 commit into
eyeseast:mainfrom
ryanchou1994:fix/sphinx-documentation-build

Conversation

@ryanchou1994

Copy link
Copy Markdown

Strict Sphinx builds currently report duplicate module/handler descriptions, invalid language/static-path settings, and unresolved standard-library type references. This keeps the handler descriptions on the customization page and links to them from the API page, fixes the configuration, and resolves standard-library references through Python's documentation inventory. The dump annotation now spells out os.PathLike so its deferred annotation can be linked correctly.

The HTML and man builds run with -n -W in the Python 3.13 CI job. Both builds pass without warnings on macOS and Linux with Sphinx 9.1.0, compared with 24 warnings before the change. All 67 existing tests/doctests and mypy also pass on both platforms. The package builds successfully.

The handler anchors remain on handlers.html. Removing their duplicate descriptions from api.html removes those nine duplicate page-specific anchors; the API overview links directly to the canonical descriptions. The existing index.html#module-frontmatter anchor is preserved.

Fixes #94
Fixes #104

Keep handler descriptions in one location, resolve Python type links, and check HTML and man output in CI.
Copilot AI lite review requested due to automatic review settings September 9, 2026 05:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

1.0.0: sphinx warnings reference target not found 1.0.0: sphinx warnings

2 participants