docs: fix documentation build#1820
Open
mifuyutsuki wants to merge 3 commits into
Open
Conversation
Synchronizes the listed dependencies in requirements-docs.txt with that of pyproject.toml (poetry) and setup.py.
Merged `selection` and `rendering` options in mkdocstrings-python settings to one `options`; the former are deprecated in 0.19 and removed in 0.23. Set `autorefs.resolve_closest` to resolve "multiple primary URL" warnings with the monopage. Set mkdocstrings-python `members_order` to alphabetical to match the currently live documentation, and also `show_symbol_type_toc` to better distinguish methods from attributes in the ToC, as the `()` is no longer present in the current version.
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.
Pull Request Type
Description
Fixes errors I encountered while building the documentation to update the docs. I suspect the errors I got (most specifically deprecated options in
mkdocs.yml) explains why thedocs-builderaction during the release of 5.16.0 failed:mkdocstringsremoved the config keysselectionandrendering, now combining them into oneoptionskey. Also, the build no longer works withgriffe==0.25.Synchronized
requirements-docs.txtandsetup.pyto the actual requirements (the former did not list the mkdocs requirements). The version pinning ongriffethat was insetup.pyis removed;mkdocstrings-pythonnow requires a much later version ofgriffe.Edited some mkdocs options to resolve some little things (detalied in Changes).
Changes
requirements-docs.txt.griffeinsetup.py.resolve_closestto resolve "multiple primary URL" warnings caused by the monopage.members_orderto alphabetical to match the currently live API reference.show_symbol_type_tocto distinguish methods from attributes in Table of Contents, as the parentheses in ToC (e.g.wait_for_component()) are no longer present in the latest version of mkdocstrings-python.Related Issues
Test Scenarios
Python Compatibility
3.10.x3.11.xChecklist
pre-commitcode linter over all edited files