mkdocstrings-python 1.10.9__tar.gz → 1.11.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/CHANGELOG.md +16 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/PKG-INFO +3 -3
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/insiders/changelog.md +31 -0
- mkdocstrings_python-1.11.1/docs/insiders/goals.yml +44 -0
- mkdocstrings_python-1.11.1/docs/snippets/package/__init__.py +19 -0
- mkdocstrings_python-1.11.1/docs/snippets/package/modern.py +3 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/usage/configuration/docstrings.md +220 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/usage/configuration/general.md +85 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/usage/configuration/headings.md +123 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/usage/configuration/signatures.md +87 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/usage/customization.md +20 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/mkdocs.yml +11 -4
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/pyproject.toml +3 -3
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/handler.py +5 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/rendering.py +58 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/class.html.jinja +4 -2
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/admonition.html.jinja +2 -2
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/attributes.html.jinja +3 -3
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/classes.html.jinja +3 -3
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/examples.html.jinja +1 -1
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/functions.html.jinja +3 -3
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/modules.html.jinja +3 -3
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/other_parameters.html.jinja +3 -3
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/parameters.html.jinja +3 -3
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/raises.html.jinja +3 -3
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/receives.html.jinja +3 -3
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/returns.html.jinja +3 -3
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/warns.html.jinja +3 -3
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/yields.html.jinja +3 -3
- mkdocstrings_python-1.11.1/src/mkdocstrings_handlers/python/templates/material/_base/docstring.html.jinja +55 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/attributes.html.jinja +1 -1
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/other_parameters.html.jinja +1 -1
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/parameters.html.jinja +1 -1
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/raises.html.jinja +1 -1
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/receives.html.jinja +1 -1
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/returns.html.jinja +1 -1
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/warns.html.jinja +1 -1
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/yields.html.jinja +1 -1
- mkdocstrings_python-1.10.9/docs/insiders/goals.yml +0 -24
- mkdocstrings_python-1.10.9/src/mkdocstrings_handlers/python/templates/material/_base/docstring.html.jinja +0 -53
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/CODE_OF_CONDUCT.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/CONTRIBUTING.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/LICENSE +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/README.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/config/black.toml +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/config/coverage.ini +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/config/git-changelog.toml +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/config/mypy.ini +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/config/pytest.ini +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/config/ruff.toml +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/config/vscode/launch.json +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/config/vscode/settings.json +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/config/vscode/tasks.json +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/devdeps.txt +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/.glossary.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/.overrides/main.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/.overrides/partials/comments.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/changelog.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/code_of_conduct.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/contributing.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/credits.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/css/insiders.css +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/css/material.css +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/css/mkdocstrings.css +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/index.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/insiders/index.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/insiders/installation.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/js/feedback.js +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/js/insiders.js +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/license.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/logo.png +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/schema.json +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/usage/configuration/members.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/usage/docstrings/google.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/usage/docstrings/numpy.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/usage/docstrings/sphinx.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/usage/extensions.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/usage/index.md +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/duties.py +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/scripts/.cache/plugin/git-committers/page-authors.json +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/scripts/gen_credits.py +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/scripts/gen_ref_nav.py +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/scripts/insiders.py +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/scripts/make +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/__init__.py +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/debug.py +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/py.typed +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/attribute.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/attribute.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/children.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/children.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/class.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/admonition.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/attributes.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/classes.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/examples.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/functions.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/modules.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/other_parameters.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/parameters.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/raises.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/receives.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/returns.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/warns.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring/yields.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/docstring.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/expression.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/expression.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/function.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/function.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/labels.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/labels.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/language.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/language.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/languages/en.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/languages/en.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/languages/ja.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/languages/ja.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/languages/zh.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/languages/zh.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/module.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/module.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/signature.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/signature.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/summary/attributes.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/summary/attributes.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/summary/classes.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/summary/classes.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/summary/functions.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/summary/functions.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/summary/modules.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/summary/modules.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/summary.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/_base/summary.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/attribute.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/attribute.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/children.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/children.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/class.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/class.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/admonition.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/admonition.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/attributes.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/attributes.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/classes.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/classes.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/examples.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/examples.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/functions.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/functions.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/modules.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/modules.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/other_parameters.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/other_parameters.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/parameters.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/parameters.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/raises.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/raises.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/receives.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/receives.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/returns.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/returns.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/warns.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/warns.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/yields.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring/yields.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/docstring.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/expression.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/expression.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/function.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/function.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/labels.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/labels.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/language.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/language.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/languages/en.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/languages/en.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/languages/ja.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/languages/ja.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/languages/zh.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/languages/zh.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/module.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/module.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/signature.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/signature.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/style.css +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/summary/attributes.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/summary/attributes.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/summary/classes.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/summary/classes.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/summary/functions.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/summary/functions.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/summary/modules.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/summary/modules.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/summary.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/material/summary.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/attributes.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/other_parameters.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/parameters.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/raises.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/receives.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/returns.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/warns.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/yields.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/language.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/language.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/languages/en.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/languages/en.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/languages/ja.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/languages/ja.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/languages/zh.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/_base/languages/zh.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/docstring/attributes.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/docstring/attributes.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/docstring/other_parameters.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/docstring/other_parameters.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/docstring/parameters.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/docstring/parameters.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/docstring/raises.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/docstring/raises.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/docstring/receives.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/docstring/receives.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/docstring/returns.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/docstring/returns.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/docstring/warns.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/docstring/warns.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/docstring/yields.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/docstring/yields.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/language.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/language.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/languages/en.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/languages/en.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/languages/ja.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/languages/ja.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/languages/zh.html +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/languages/zh.html.jinja +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/src/mkdocstrings_handlers/python/templates/readthedocs/style.css +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/tests/__init__.py +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/tests/conftest.py +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/tests/test_handler.py +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/tests/test_rendering.py +0 -0
- {mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/tests/test_themes.py +0 -0
|
@@ -5,6 +5,22 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
7
|
<!-- insertion marker -->
|
|
8
|
+
## [1.11.1](https://github.com/mkdocstrings/python/releases/tag/1.11.1) - 2024-09-03
|
|
9
|
+
|
|
10
|
+
<small>[Compare with 1.11.0](https://github.com/mkdocstrings/python/compare/1.11.0...1.11.1)</small>
|
|
11
|
+
|
|
12
|
+
### Code Refactoring
|
|
13
|
+
|
|
14
|
+
- Prepare `relative_crossrefs` and `scoped_crossrefs` insiders features ([dd8b014](https://github.com/mkdocstrings/python/commit/dd8b014a8ab3decc31d4b08bc22fe68577e1a02c) by Timothée Mazzucotelli).
|
|
15
|
+
|
|
16
|
+
## [1.11.0](https://github.com/mkdocstrings/python/releases/tag/1.11.0) - 2024-09-03
|
|
17
|
+
|
|
18
|
+
<small>[Compare with 1.10.9](https://github.com/mkdocstrings/python/compare/1.10.9...1.11.0)</small>
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
- Hook into autorefs to provide context around cross-ref errors ([bb4be5b](https://github.com/mkdocstrings/python/commit/bb4be5be1b85be50f46c7889231a2d4a3bd05165) by Timothée Mazzucotelli).
|
|
23
|
+
|
|
8
24
|
## [1.10.9](https://github.com/mkdocstrings/python/releases/tag/1.10.9) - 2024-08-30
|
|
9
25
|
|
|
10
26
|
<small>[Compare with 1.10.8](https://github.com/mkdocstrings/python/compare/1.10.8...1.10.9)</small>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mkdocstrings-python
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.11.1
|
|
4
4
|
Summary: A Python handler for mkdocstrings.
|
|
5
5
|
Author-Email: =?utf-8?q?Timoth=C3=A9e_Mazzucotelli?= <dev@pawamoy.fr>
|
|
6
6
|
License: ISC
|
|
@@ -28,8 +28,8 @@ Project-URL: Discussions, https://github.com/mkdocstrings/python/discussions
|
|
|
28
28
|
Project-URL: Gitter, https://gitter.im/mkdocstrings/python
|
|
29
29
|
Project-URL: Funding, https://github.com/sponsors/pawamoy
|
|
30
30
|
Requires-Python: >=3.8
|
|
31
|
-
Requires-Dist: mkdocstrings>=0.
|
|
32
|
-
Requires-Dist: mkdocs-autorefs>=1.
|
|
31
|
+
Requires-Dist: mkdocstrings>=0.26
|
|
32
|
+
Requires-Dist: mkdocs-autorefs>=1.2
|
|
33
33
|
Requires-Dist: griffe>=0.49
|
|
34
34
|
Description-Content-Type: text/markdown
|
|
35
35
|
|
|
@@ -2,6 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
## mkdocstrings-python Insiders
|
|
4
4
|
|
|
5
|
+
### 1.9.0 <small>September 03, 2024</small> { id="1.9.0" }
|
|
6
|
+
|
|
7
|
+
- [Relative cross-references][relative_crossrefs]
|
|
8
|
+
- [Scoped cross-references][scoped_crossrefs]
|
|
9
|
+
|
|
10
|
+
### 1.8.3 <small>June 19, 2024</small> { id="1.8.3" }
|
|
11
|
+
|
|
12
|
+
- Update code for Griffe 0.46+ to avoid deprecation warnings
|
|
13
|
+
|
|
14
|
+
### 1.8.2 <small>May 09, 2024</small> { id="1.8.2" }
|
|
15
|
+
|
|
16
|
+
- Don't render cross-refs for default values when signatures aren't separated
|
|
17
|
+
|
|
18
|
+
### 1.8.1 <small>April 19, 2024</small> { id="1.8.1" }
|
|
19
|
+
|
|
20
|
+
- Render enumeration instance name instead of just "value", allowing proper cross-reference
|
|
21
|
+
|
|
22
|
+
### 1.8.0 <small>March 24, 2024</small> { id="1.8.0" }
|
|
23
|
+
|
|
24
|
+
- [Annotations modernization][modernize_annotations]
|
|
25
|
+
|
|
26
|
+
### 1.7.0 <small>March 24, 2024</small> { id="1.7.0" }
|
|
27
|
+
|
|
28
|
+
- [Class inheritance diagrams with Mermaid][show_inheritance_diagram]
|
|
29
|
+
|
|
30
|
+
### 1.6.0 <small>January 30, 2024</small> { id="1.6.0" }
|
|
31
|
+
|
|
32
|
+
- Render cross-references to parameters documentation in signatures and attribute values.
|
|
33
|
+
- Add [`parameter_headings`][parameter_headings] option to render headings for parameters (enabling permalinks and ToC/inventory entries).
|
|
34
|
+
- Render cross-references for default parameter values in signatures.
|
|
35
|
+
|
|
5
36
|
### 1.5.1 <small>September 12, 2023</small> { id="1.5.1" }
|
|
6
37
|
|
|
7
38
|
- Prevent empty auto-summarized Methods section.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
goals:
|
|
2
|
+
500:
|
|
3
|
+
name: PlasmaVac User Guide
|
|
4
|
+
features:
|
|
5
|
+
- name: Cross-references for type annotations in signatures
|
|
6
|
+
ref: /usage/configuration/signatures/#signature_crossrefs
|
|
7
|
+
since: 2023/05/10
|
|
8
|
+
- name: Symbol types in headings and table of contents
|
|
9
|
+
ref: /usage/configuration/headings/#show_symbol_type_toc
|
|
10
|
+
since: 2023/06/04
|
|
11
|
+
1000:
|
|
12
|
+
name: GraviFridge Fluid Renewal
|
|
13
|
+
features:
|
|
14
|
+
- name: Auto-summary of object members
|
|
15
|
+
ref: /usage/configuration/members/#summary
|
|
16
|
+
since: 2023/08/20
|
|
17
|
+
- name: Automatic rendering of function signature overloads
|
|
18
|
+
since: 2023/09/05
|
|
19
|
+
- name: Parameter headings
|
|
20
|
+
ref: /usage/configuration/headings/#parameter_headings
|
|
21
|
+
since: 2024/01/30
|
|
22
|
+
- name: Automatic cross-references to parameters
|
|
23
|
+
ref: /usage/configuration/headings/#parameter_headings
|
|
24
|
+
since: 2024/01/30
|
|
25
|
+
- name: Automatic cross-references for default parameter values in signatures
|
|
26
|
+
since: 2024/01/30
|
|
27
|
+
1500:
|
|
28
|
+
name: HyperLamp Navigation Tips
|
|
29
|
+
features:
|
|
30
|
+
- name: Class inheritance diagrams with Mermaid
|
|
31
|
+
ref: /usage/configuration/general/#show_inheritance_diagram
|
|
32
|
+
since: 2024/03/24
|
|
33
|
+
- name: Annotations modernization
|
|
34
|
+
ref: /usage/configuration/signatures/#modernize_annotations
|
|
35
|
+
since: 2024/03/24
|
|
36
|
+
2000:
|
|
37
|
+
name: FusionDrive Ejection Configuration
|
|
38
|
+
features:
|
|
39
|
+
- name: Relative cross-references
|
|
40
|
+
ref: /usage/configuration/docstrings/#relative_crossrefs
|
|
41
|
+
since: 2024/09/03
|
|
42
|
+
- name: Scoped cross-references
|
|
43
|
+
ref: /usage/configuration/docstrings/#scoped_crossrefs
|
|
44
|
+
since: 2024/09/03
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from importlib import metadata
|
|
2
|
+
|
|
3
|
+
def get_version(dist: str = "mkdocstrings-python") -> str:
|
|
4
|
+
"""Get version of the given distribution.
|
|
5
|
+
|
|
6
|
+
Parameters:
|
|
7
|
+
dist: A distribution name.
|
|
8
|
+
|
|
9
|
+
Returns:
|
|
10
|
+
A version number.
|
|
11
|
+
"""
|
|
12
|
+
try:
|
|
13
|
+
return metadata.version(dist)
|
|
14
|
+
except metadata.PackageNotFoundError:
|
|
15
|
+
return "0.0.0"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
current_version: str = get_version(dist="mkdocstrings-python")
|
|
19
|
+
"""Current package version."""
|
{mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/usage/configuration/docstrings.md
RENAMED
|
@@ -317,6 +317,226 @@ class Thing:
|
|
|
317
317
|
////
|
|
318
318
|
///
|
|
319
319
|
|
|
320
|
+
## `relative_crossrefs`
|
|
321
|
+
|
|
322
|
+
[:octicons-heart-fill-24:{ .pulse } Sponsors only](../../insiders/index.md){ .insiders } —
|
|
323
|
+
[:octicons-tag-24: Insiders 1.9.0](../../insiders/changelog.md#1.9.0)
|
|
324
|
+
|
|
325
|
+
- **:octicons-package-24: Type [`bool`][] :material-equal: `False`{ title="default value" }**
|
|
326
|
+
<!-- - **:octicons-project-template-24: Template :material-null:** (N/A) -->
|
|
327
|
+
|
|
328
|
+
Whether to enable the relative-crossref syntax.
|
|
329
|
+
|
|
330
|
+
The relative-crossref syntax lets you reference the current object or its parent by prefixing a crossref identifier with dots. For example, to cross-reference the current object's `name` member, you can write `[link to name attribute][.name]`. The "current object" is the object containing the docstring being rendered.
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
```yaml title="in mkdocs.yml (global configuration)"
|
|
334
|
+
plugins:
|
|
335
|
+
- mkdocstrings:
|
|
336
|
+
handlers:
|
|
337
|
+
python:
|
|
338
|
+
options:
|
|
339
|
+
relative_crossrefs: false
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
```md title="or in docs/some_page.md (local configuration)"
|
|
343
|
+
::: path.to.module
|
|
344
|
+
options:
|
|
345
|
+
relative_crossrefs: true
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
/// admonition | Examples
|
|
349
|
+
type: preview
|
|
350
|
+
|
|
351
|
+
```python title="pkg/module.py"
|
|
352
|
+
"""Summary.
|
|
353
|
+
|
|
354
|
+
- Link to [`module`][.].
|
|
355
|
+
- Link to [`module_attribute`][.module_attribute].
|
|
356
|
+
- Link to [`Class`][.Class].
|
|
357
|
+
- Link to [`class_attribute`][.Class.class_attribute].
|
|
358
|
+
- Link to [`instance_attribute`][.Class.instance_attribute].
|
|
359
|
+
- Link to [`method`][.Class.method].
|
|
360
|
+
"""
|
|
361
|
+
|
|
362
|
+
module_attribute = 0
|
|
363
|
+
"""Summary.
|
|
364
|
+
|
|
365
|
+
- Link to [`module`][..].
|
|
366
|
+
- Link to [`module_attribute`][.].
|
|
367
|
+
- Link to [`Class`][..Class].
|
|
368
|
+
- Link to [`class_attribute`][..Class.class_attribute].
|
|
369
|
+
- Link to [`instance_attribute`][..Class.instance_attribute].
|
|
370
|
+
- Link to [`method`][..Class.method].
|
|
371
|
+
"""
|
|
372
|
+
|
|
373
|
+
class Class:
|
|
374
|
+
"""Summary.
|
|
375
|
+
|
|
376
|
+
- Link to [`module`][..].
|
|
377
|
+
- Link to [`module_attribute`][..module_attribute].
|
|
378
|
+
- Link to [`Class`][.].
|
|
379
|
+
- Link to [`class_attribute`][.class_attribute].
|
|
380
|
+
- Link to [`instance_attribute`][.instance_attribute].
|
|
381
|
+
- Link to [`method`][.method].
|
|
382
|
+
"""
|
|
383
|
+
|
|
384
|
+
class_attribute = 0
|
|
385
|
+
"""Summary.
|
|
386
|
+
|
|
387
|
+
- Link to [`module`][...].
|
|
388
|
+
- Link to [`module_attribute`][...module_attribute].
|
|
389
|
+
- Link to [`Class`][..].
|
|
390
|
+
- Link to [`class_attribute`][.].
|
|
391
|
+
- Link to [`instance_attribute`][..instance_attribute].
|
|
392
|
+
- Link to [`method`][..method].
|
|
393
|
+
"""
|
|
394
|
+
|
|
395
|
+
def __init__(self):
|
|
396
|
+
"""Summary.
|
|
397
|
+
|
|
398
|
+
- Link to [`module`][...].
|
|
399
|
+
- Link to [`module_attribute`][...module_attribute].
|
|
400
|
+
- Link to [`Class`][..].
|
|
401
|
+
- Link to [`class_attribute`][..class_attribute].
|
|
402
|
+
- Link to [`instance_attribute`][..instance_attribute].
|
|
403
|
+
- Link to [`method`][..method].
|
|
404
|
+
"""
|
|
405
|
+
self.instance_attribute = 0
|
|
406
|
+
"""Summary.
|
|
407
|
+
|
|
408
|
+
- Link to [`module`][...].
|
|
409
|
+
- Link to [`module_attribute`][...module_attribute].
|
|
410
|
+
- Link to [`Class`][..].
|
|
411
|
+
- Link to [`class_attribute`][..class_attribute].
|
|
412
|
+
- Link to [`instance_attribute`][.].
|
|
413
|
+
- Link to [`method`][..method].
|
|
414
|
+
"""
|
|
415
|
+
|
|
416
|
+
def method(self):
|
|
417
|
+
"""Summary.
|
|
418
|
+
|
|
419
|
+
- Link to [`module`][...].
|
|
420
|
+
- Link to [`module_attribute`][...module_attribute].
|
|
421
|
+
- Link to [`Class`][..].
|
|
422
|
+
- Link to [`class_attribute`][..class_attribute].
|
|
423
|
+
- Link to [`instance_attribute`][..instance_attribute].
|
|
424
|
+
- Link to [`method`][.].
|
|
425
|
+
"""
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
///
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
## `scoped_crossrefs`
|
|
432
|
+
|
|
433
|
+
[:octicons-heart-fill-24:{ .pulse } Sponsors only](../../insiders/index.md){ .insiders } —
|
|
434
|
+
[:octicons-tag-24: Insiders 1.9.0](../../insiders/changelog.md#1.9.0)
|
|
435
|
+
|
|
436
|
+
- **:octicons-package-24: Type [`bool`][] :material-equal: `False`{ title="default value" }**
|
|
437
|
+
<!-- - **:octicons-project-template-24: Template :material-null:** (N/A) -->
|
|
438
|
+
|
|
439
|
+
Whether to enable scoped cross-references.
|
|
440
|
+
|
|
441
|
+
With scoped cross-references, you can write identifiers as if you wanted to access them from the current object's scope. The scoping rules do not exactly match Python's: you can reference members and siblings too, without prefixing with `self.` or `cls.`.
|
|
442
|
+
|
|
443
|
+
The following order is applied when resolving a name in a given scope:
|
|
444
|
+
|
|
445
|
+
1. member of the current object
|
|
446
|
+
2. parent class
|
|
447
|
+
3. repeat 1-2 within parent's scope
|
|
448
|
+
|
|
449
|
+
In practice, it means that the name is first looked up in members, then it is compared against the parent name (only if it's a class), then it is looked up in siblings. It continues climbing up the object tree until there's no parent, in which case it raises a name resolution error.
|
|
450
|
+
|
|
451
|
+
Cross-referencing an imported object will directly link to this object if the objects inventory of the project it comes from was [loaded][import]. You won't be able to cross-reference it within your own documentation with scoped references, if you happen to be rendering this external object too. In that case, you can use an absolute reference or a [relative][relative_crossrefs] one instead.
|
|
452
|
+
|
|
453
|
+
Another limitation is that you won't be able to reference an external package if its name can be resolved in the current object's scope.
|
|
454
|
+
|
|
455
|
+
```yaml title="in mkdocs.yml (global configuration)"
|
|
456
|
+
plugins:
|
|
457
|
+
- mkdocstrings:
|
|
458
|
+
handlers:
|
|
459
|
+
python:
|
|
460
|
+
options:
|
|
461
|
+
scoped_crossrefs: false
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
```md title="or in docs/some_page.md (local configuration)"
|
|
465
|
+
::: path.to.module
|
|
466
|
+
options:
|
|
467
|
+
scoped_crossrefs: true
|
|
468
|
+
```
|
|
469
|
+
|
|
470
|
+
/// admonition | Examples
|
|
471
|
+
type: preview
|
|
472
|
+
|
|
473
|
+
```python title="pkg/module.py"
|
|
474
|
+
"""Summary.
|
|
475
|
+
|
|
476
|
+
- Link to [`module_attribute`][module_attribute].
|
|
477
|
+
- Link to [`Class`][Class].
|
|
478
|
+
- Link to [`class_attribute`][Class.class_attribute].
|
|
479
|
+
- Link to [`instance_attribute`][Class.instance_attribute].
|
|
480
|
+
- Link to [`method`][Class.method].
|
|
481
|
+
"""
|
|
482
|
+
|
|
483
|
+
module_attribute = 0
|
|
484
|
+
"""Summary.
|
|
485
|
+
|
|
486
|
+
- Link to [`Class`][Class].
|
|
487
|
+
- Link to [`class_attribute`][Class.class_attribute].
|
|
488
|
+
- Link to [`instance_attribute`][Class.instance_attribute].
|
|
489
|
+
- Link to [`method`][Class.method].
|
|
490
|
+
"""
|
|
491
|
+
|
|
492
|
+
class Class:
|
|
493
|
+
"""Summary.
|
|
494
|
+
|
|
495
|
+
- Link to [`module_attribute`][module_attribute].
|
|
496
|
+
- Link to [`class_attribute`][class_attribute].
|
|
497
|
+
- Link to [`instance_attribute`][instance_attribute].
|
|
498
|
+
- Link to [`method`][method].
|
|
499
|
+
"""
|
|
500
|
+
|
|
501
|
+
class_attribute = 0
|
|
502
|
+
"""Summary.
|
|
503
|
+
|
|
504
|
+
- Link to [`module_attribute`][module_attribute].
|
|
505
|
+
- Link to [`Class`][Class].
|
|
506
|
+
- Link to [`instance_attribute`][instance_attribute].
|
|
507
|
+
- Link to [`method`][method].
|
|
508
|
+
"""
|
|
509
|
+
|
|
510
|
+
def __init__(self):
|
|
511
|
+
"""Summary.
|
|
512
|
+
|
|
513
|
+
- Link to [`module_attribute`][module_attribute].
|
|
514
|
+
- Link to [`Class`][Class].
|
|
515
|
+
- Link to [`class_attribute`][class_attribute].
|
|
516
|
+
- Link to [`instance_attribute`][instance_attribute].
|
|
517
|
+
- Link to [`method`][method].
|
|
518
|
+
"""
|
|
519
|
+
self.instance_attribute = 0
|
|
520
|
+
"""Summary.
|
|
521
|
+
|
|
522
|
+
- Link to [`module_attribute`][module_attribute].
|
|
523
|
+
- Link to [`Class`][Class].
|
|
524
|
+
- Link to [`class_attribute`][class_attribute].
|
|
525
|
+
- Link to [`method`][method].
|
|
526
|
+
"""
|
|
527
|
+
|
|
528
|
+
def method(self):
|
|
529
|
+
"""Summary.
|
|
530
|
+
|
|
531
|
+
- Link to [`module_attribute`][module_attribute].
|
|
532
|
+
- Link to [`Class`][Class].
|
|
533
|
+
- Link to [`class_attribute`][class_attribute].
|
|
534
|
+
- Link to [`instance_attribute`][instance_attribute].
|
|
535
|
+
"""
|
|
536
|
+
```
|
|
537
|
+
|
|
538
|
+
///
|
|
539
|
+
|
|
320
540
|
## `show_if_no_docstring`
|
|
321
541
|
|
|
322
542
|
- **:octicons-package-24: Type [`bool`][] :material-equal: `False`{ title="default value" }**
|
{mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/usage/configuration/general.md
RENAMED
|
@@ -92,6 +92,91 @@ plugins:
|
|
|
92
92
|
////
|
|
93
93
|
///
|
|
94
94
|
|
|
95
|
+
## `show_inheritance_diagram`
|
|
96
|
+
|
|
97
|
+
[:octicons-heart-fill-24:{ .pulse } Sponsors only](../../insiders/index.md){ .insiders } —
|
|
98
|
+
[:octicons-tag-24: Insiders 1.7.0](../../insiders/changelog.md#1.7.0)
|
|
99
|
+
|
|
100
|
+
- **:octicons-package-24: Type [`bool`][] :material-equal: `False`{ title="default value" }**
|
|
101
|
+
<!-- - **:octicons-project-template-24: Template :material-null:** (contained in [`class.html`][class template]) -->
|
|
102
|
+
|
|
103
|
+
Show the inheritance diagram of a class using [Mermaid](https://mermaid.js.org/).
|
|
104
|
+
|
|
105
|
+
With this option enabled, an inheritance diagram (as a flowchart)
|
|
106
|
+
will be displayed after a class signature.
|
|
107
|
+
Each node will act as a cross-reference
|
|
108
|
+
and will bring you to the relevant class' documentation
|
|
109
|
+
when clicking on it.
|
|
110
|
+
|
|
111
|
+
It should work out of the box with [Material for MkDocs][].
|
|
112
|
+
For other themes, you must include Mermaid's Javascript code manually:
|
|
113
|
+
|
|
114
|
+
```yaml title="mkdocs.yml"
|
|
115
|
+
extra_javascript:
|
|
116
|
+
- https://unpkg.com/mermaid@10.9.0/dist/mermaid.min.js
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
```yaml title="in mkdocs.yml (global configuration)"
|
|
120
|
+
plugins:
|
|
121
|
+
- mkdocstrings:
|
|
122
|
+
handlers:
|
|
123
|
+
python:
|
|
124
|
+
options:
|
|
125
|
+
show_inheritance_diagram: true
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
```md title="or in docs/some_page.md (local configuration)"
|
|
129
|
+
::: path.to.object
|
|
130
|
+
options:
|
|
131
|
+
show_inheritance_diagram: false
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
/// admonition | Preview
|
|
135
|
+
type: preview
|
|
136
|
+
|
|
137
|
+
With the following classes:
|
|
138
|
+
|
|
139
|
+
```python
|
|
140
|
+
class SuperAbstract:
|
|
141
|
+
"""Super abstract class."""
|
|
142
|
+
class Mixin1:
|
|
143
|
+
"""Mixin 1."""
|
|
144
|
+
class Abstract(SuperAbstract, Mixin1):
|
|
145
|
+
"""Abstract class."""
|
|
146
|
+
class Mixin2A:
|
|
147
|
+
"""Mixin 2A."""
|
|
148
|
+
class Mixin2B(Mixin2A):
|
|
149
|
+
"""Mixin 2B."""
|
|
150
|
+
class Concrete(Abstract, Mixin2B):
|
|
151
|
+
"""Concrete class."""
|
|
152
|
+
class SuperConcrete(Concrete):
|
|
153
|
+
"""Super concrete class."""
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
The diagram for `SuperConcrete` will look like this:
|
|
157
|
+
|
|
158
|
+
```mermaid
|
|
159
|
+
flowchart TD
|
|
160
|
+
SuperConcrete[SuperConcrete]
|
|
161
|
+
Concrete[Concrete]
|
|
162
|
+
Abstract[Abstract]
|
|
163
|
+
SuperAbstract[SuperAbstract]
|
|
164
|
+
Mixin1[Mixin1]
|
|
165
|
+
Mixin2B[Mixin2B]
|
|
166
|
+
Mixin2A[Mixin2A]
|
|
167
|
+
|
|
168
|
+
Concrete --> SuperConcrete
|
|
169
|
+
Abstract --> Concrete
|
|
170
|
+
SuperAbstract --> Abstract
|
|
171
|
+
Mixin1 --> Abstract
|
|
172
|
+
Mixin2B --> Concrete
|
|
173
|
+
Mixin2A --> Mixin2B
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
*Nodes are not clickable in this example
|
|
177
|
+
because these classes do not exist in our documentation.*
|
|
178
|
+
///
|
|
179
|
+
|
|
95
180
|
## `show_source`
|
|
96
181
|
|
|
97
182
|
- **:octicons-package-24: Type [`bool`][] :material-equal: `True`{ title="default value" }**
|
{mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/usage/configuration/headings.md
RENAMED
|
@@ -57,6 +57,129 @@ plugins:
|
|
|
57
57
|
////
|
|
58
58
|
///
|
|
59
59
|
|
|
60
|
+
## `parameter_headings`
|
|
61
|
+
|
|
62
|
+
[:octicons-heart-fill-24:{ .pulse } Sponsors only](../../insiders/index.md){ .insiders } —
|
|
63
|
+
[:octicons-tag-24: Insiders 1.6.0](../../insiders/changelog.md#1.6.0)
|
|
64
|
+
|
|
65
|
+
- **:octicons-package-24: Type [`bool`][] :material-equal: `False`{ title="default value" }**
|
|
66
|
+
<!-- - **:octicons-project-template-24: Template :material-null:** (N/A) -->
|
|
67
|
+
|
|
68
|
+
Whether to render headings for function/method parameters.
|
|
69
|
+
|
|
70
|
+
With this option enabled, each function/method parameter
|
|
71
|
+
(including parameters of `__init__` methods merged in their parent class
|
|
72
|
+
with the [`merge_init_into_class`][] option)
|
|
73
|
+
gets a permalink, an entry in the Table of Contents,
|
|
74
|
+
and an entry in the generated objects inventory.
|
|
75
|
+
The permalink and inventory entry allow cross-references
|
|
76
|
+
from internal and external pages.
|
|
77
|
+
|
|
78
|
+
The identifier used in the permalink and inventory is of the following form:
|
|
79
|
+
`path.to.function(param_name)`. To manually cross-reference a parameter,
|
|
80
|
+
you can therefore use this Markdown syntax:
|
|
81
|
+
|
|
82
|
+
```md
|
|
83
|
+
- Class parameter: [`param`][package.module.Class(param)]
|
|
84
|
+
- Method parameter: [`param`][package.module.Class.method(param)]
|
|
85
|
+
- Function parameter: [`param`][package.module.function(param)]
|
|
86
|
+
- Variadic positional parameters: [`*args`][package.module.function(*args)]
|
|
87
|
+
- Variadic keyword parameters: [`**kwargs`][package.module.function(**kwargs)]
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Enabling this option along with [`signature_crossrefs`][] will automatically
|
|
91
|
+
render cross-references to parameters in class/function/method signatures
|
|
92
|
+
and attributes values.
|
|
93
|
+
|
|
94
|
+
```yaml title="in mkdocs.yml (global configuration)"
|
|
95
|
+
plugins:
|
|
96
|
+
- mkdocstrings:
|
|
97
|
+
handlers:
|
|
98
|
+
python:
|
|
99
|
+
options:
|
|
100
|
+
parameter_headings: false
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
```md title="or in docs/some_page.md (local configuration)"
|
|
104
|
+
::: path.to.module
|
|
105
|
+
options:
|
|
106
|
+
parameter_headings: true
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
/// admonition | Preview: Cross-references
|
|
110
|
+
type: preview
|
|
111
|
+
|
|
112
|
+
```md exec="on"
|
|
113
|
+
::: package.get_version
|
|
114
|
+
options:
|
|
115
|
+
heading_level: 3
|
|
116
|
+
parameter_headings: true
|
|
117
|
+
docstring_section_style: list
|
|
118
|
+
|
|
119
|
+
::: package.current_version
|
|
120
|
+
options:
|
|
121
|
+
heading_level: 3
|
|
122
|
+
line_length: 100
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
///
|
|
126
|
+
|
|
127
|
+
/// admonition | Preview: Parameter sections
|
|
128
|
+
type: preview
|
|
129
|
+
|
|
130
|
+
//// tab | Table style
|
|
131
|
+
```md exec="on"
|
|
132
|
+
::: package.get_version
|
|
133
|
+
options:
|
|
134
|
+
heading_level: 3
|
|
135
|
+
show_root_heading: false
|
|
136
|
+
show_root_toc_entry: false
|
|
137
|
+
parameter_headings: true
|
|
138
|
+
docstring_section_style: table
|
|
139
|
+
show_docstring_returns: false
|
|
140
|
+
show_docstring_description: false
|
|
141
|
+
```
|
|
142
|
+
////
|
|
143
|
+
|
|
144
|
+
//// tab | List style
|
|
145
|
+
```md exec="on"
|
|
146
|
+
::: package.get_version
|
|
147
|
+
options:
|
|
148
|
+
heading_level: 3
|
|
149
|
+
show_root_heading: false
|
|
150
|
+
show_root_toc_entry: false
|
|
151
|
+
parameter_headings: true
|
|
152
|
+
docstring_section_style: list
|
|
153
|
+
show_docstring_returns: false
|
|
154
|
+
show_docstring_description: false
|
|
155
|
+
```
|
|
156
|
+
////
|
|
157
|
+
|
|
158
|
+
//// tab | Spacy style
|
|
159
|
+
```md exec="on"
|
|
160
|
+
::: package.get_version
|
|
161
|
+
options:
|
|
162
|
+
heading_level: 3
|
|
163
|
+
show_root_heading: false
|
|
164
|
+
show_root_toc_entry: false
|
|
165
|
+
parameter_headings: true
|
|
166
|
+
docstring_section_style: spacy
|
|
167
|
+
show_docstring_returns: false
|
|
168
|
+
show_docstring_description: false
|
|
169
|
+
```
|
|
170
|
+
////
|
|
171
|
+
///
|
|
172
|
+
|
|
173
|
+
/// admonition | Preview: Table of contents (with symbol types)
|
|
174
|
+
type: preview
|
|
175
|
+
|
|
176
|
+
<code class="doc-symbol doc-symbol-toc doc-symbol-function"></code> get_version<br>
|
|
177
|
+
<code class="doc-symbol doc-symbol-toc doc-symbol-parameter" style="margin-left: 16px;"></code> dist
|
|
178
|
+
|
|
179
|
+
To customize symbols, see [Customizing symbol types](../customization.md/#symbol-types).
|
|
180
|
+
|
|
181
|
+
///
|
|
182
|
+
|
|
60
183
|
## `show_root_heading`
|
|
61
184
|
|
|
62
185
|
- **:octicons-package-24: Type [`bool`][] :material-equal: `False`{ title="default value" }**
|
{mkdocstrings_python-1.10.9 → mkdocstrings_python-1.11.1}/docs/usage/configuration/signatures.md
RENAMED
|
@@ -193,6 +193,93 @@ plugins:
|
|
|
193
193
|
////
|
|
194
194
|
///
|
|
195
195
|
|
|
196
|
+
## `modernize_annotations`
|
|
197
|
+
|
|
198
|
+
[:octicons-heart-fill-24:{ .pulse } Sponsors only](../../insiders/index.md){ .insiders } —
|
|
199
|
+
[:octicons-tag-24: Insiders 1.8.0](../../insiders/changelog.md#1.8.0) —
|
|
200
|
+
**This feature also requires
|
|
201
|
+
[Griffe Insiders](https://mkdocstrings.github.io/griffe/insiders/)
|
|
202
|
+
to be installed.**
|
|
203
|
+
|
|
204
|
+
- **:octicons-package-24: Type [`bool`][] :material-equal: `False`{ title="default value" }**
|
|
205
|
+
<!-- - **:octicons-project-template-24: Template :material-null:** (contained in [`class.html`][class template]) -->
|
|
206
|
+
|
|
207
|
+
Modernize annotations with latest features and PEPs of the Python language.
|
|
208
|
+
|
|
209
|
+
The Python language keeps evolving, and often library developers
|
|
210
|
+
must continue to support a few minor versions of Python.
|
|
211
|
+
Therefore they cannot use some features that were introduced
|
|
212
|
+
in the latest versions.
|
|
213
|
+
|
|
214
|
+
Yet this doesn't mean they can't enjoy latest features in their docs:
|
|
215
|
+
Griffe allows to "modernize" expressions, for example
|
|
216
|
+
by replacing `typing.Union` with [PEP 604][pep-604] type unions `|`.
|
|
217
|
+
Thanks to this, mkdocstrings' Python handler
|
|
218
|
+
can automatically transform type annotations into their modern equivalent.
|
|
219
|
+
This improves consistency in your docs, and shows users
|
|
220
|
+
how to use your code with the latest features of the language.
|
|
221
|
+
|
|
222
|
+
[pep-604]: https://peps.python.org/pep-0604/
|
|
223
|
+
|
|
224
|
+
Modernizations applied:
|
|
225
|
+
|
|
226
|
+
- `typing.Dict[A, B]` becomes `dict[A, B]`
|
|
227
|
+
- `typing.List[A]` becomes `list[A]`
|
|
228
|
+
- `typing.Set[A]` becomes `set[A]`
|
|
229
|
+
- `typing.Tuple[A]` becomes `tuple[A]`
|
|
230
|
+
- `typing.Union[A, B]` becomes `A | B`
|
|
231
|
+
- `typing.Optional[A]` becomes `A | None`
|
|
232
|
+
|
|
233
|
+
```yaml title="in mkdocs.yml (global configuration)"
|
|
234
|
+
plugins:
|
|
235
|
+
- mkdocstrings:
|
|
236
|
+
handlers:
|
|
237
|
+
python:
|
|
238
|
+
options:
|
|
239
|
+
modernize_annotations: true
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
```md title="or in docs/some_page.md (local configuration)"
|
|
243
|
+
::: path.to.object
|
|
244
|
+
options:
|
|
245
|
+
modernize_annotations: false
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
/// admonition | Preview
|
|
249
|
+
type: preview
|
|
250
|
+
|
|
251
|
+
```python
|
|
252
|
+
--8<-- "docs/snippets/package/modern.py"
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
//// tab | Unchanged annotations
|
|
256
|
+
|
|
257
|
+
```md exec="on"
|
|
258
|
+
::: package.modern.example
|
|
259
|
+
options:
|
|
260
|
+
modernize_annotations: false
|
|
261
|
+
show_symbol_type_heading: false
|
|
262
|
+
show_labels: false
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
////
|
|
266
|
+
|
|
267
|
+
//// tab | Modernized annotations
|
|
268
|
+
|
|
269
|
+
```md exec="on"
|
|
270
|
+
::: package.modern.example
|
|
271
|
+
options:
|
|
272
|
+
modernize_annotations: true
|
|
273
|
+
show_symbol_type_heading: false
|
|
274
|
+
show_labels: false
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
////
|
|
278
|
+
|
|
279
|
+
///
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
196
283
|
## `show_signature`
|
|
197
284
|
|
|
198
285
|
- **:octicons-package-24: Type [`bool`][] :material-equal: `True`{ title="default value" }**
|