pax_global_header 0000666 0000000 0000000 00000000064 14547017602 0014520 g ustar 00root root 0000000 0000000 52 comment=36499eb87db7314c267861ecc7aeaac2a21cf656
mkdocstrings-python-handlers-1.8.0/ 0000775 0000000 0000000 00000000000 14547017602 0017352 5 ustar 00root root 0000000 0000000 mkdocstrings-python-handlers-1.8.0/.copier-answers.yml 0000664 0000000 0000000 00000001324 14547017602 0023114 0 ustar 00root root 0000000 0000000 # Changes here will be overwritten by Copier
_commit: 1.1.3
_src_path: gh:pawamoy/copier-pdm
author_email: pawamoy@pm.me
author_fullname: Timothée Mazzucotelli
author_username: pawamoy
copyright_date: '2021'
copyright_holder: Timothée Mazzucotelli
copyright_holder_email: pawamoy@pm.me
copyright_license: ISC License
insiders: true
insiders_repository_name: mkdocstrings-python
project_description: A Python handler for mkdocstrings.
project_name: mkdocstrings-python
public_release: true
python_package_command_line_name: ''
python_package_distribution_name: mkdocstrings-python
python_package_import_name: mkdocstrings_handlers
repository_name: python
repository_namespace: mkdocstrings
repository_provider: github.com
mkdocstrings-python-handlers-1.8.0/.github/ 0000775 0000000 0000000 00000000000 14547017602 0020712 5 ustar 00root root 0000000 0000000 mkdocstrings-python-handlers-1.8.0/.github/FUNDING.yml 0000664 0000000 0000000 00000000107 14547017602 0022525 0 ustar 00root root 0000000 0000000 github: pawamoy
ko_fi: pawamoy
custom:
- https://www.paypal.me/pawamoy
mkdocstrings-python-handlers-1.8.0/.github/ISSUE_TEMPLATE/ 0000775 0000000 0000000 00000000000 14547017602 0023075 5 ustar 00root root 0000000 0000000 mkdocstrings-python-handlers-1.8.0/.github/ISSUE_TEMPLATE/bug_report.md 0000664 0000000 0000000 00000002717 14547017602 0025576 0 ustar 00root root 0000000 0000000 ---
name: Bug report
about: Create a bug report to help us improve.
title: "bug: "
labels: unconfirmed
assignees: [pawamoy]
---
### Description of the bug
### To Reproduce
```
WRITE MRE / INSTRUCTIONS HERE
```
### Full traceback
Full traceback
```python
PASTE TRACEBACK HERE
```
### Expected behavior
### Environment information
```bash
python -m mkdocstrings_handlers.python.debug # | xclip -selection clipboard
```
PASTE OUTPUT HERE
### Additional context
mkdocstrings-python-handlers-1.8.0/.github/ISSUE_TEMPLATE/config.yml 0000664 0000000 0000000 00000000330 14547017602 0025061 0 ustar 00root root 0000000 0000000 blank_issues_enabled: false
contact_links:
- name: I have a question / I need help
url: https://github.com/mkdocstrings/python/discussions/new?category=q-a
about: Ask and answer questions in the Discussions tab.
mkdocstrings-python-handlers-1.8.0/.github/ISSUE_TEMPLATE/feature_request.md 0000664 0000000 0000000 00000001213 14547017602 0026617 0 ustar 00root root 0000000 0000000 ---
name: Feature request
about: Suggest an idea for this project.
title: "feature: "
labels: feature
assignees: pawamoy
---
### Is your feature request related to a problem? Please describe.
### Describe the solution you'd like
### Describe alternatives you've considered
### Additional context
mkdocstrings-python-handlers-1.8.0/.github/workflows/ 0000775 0000000 0000000 00000000000 14547017602 0022747 5 ustar 00root root 0000000 0000000 mkdocstrings-python-handlers-1.8.0/.github/workflows/ci.yml 0000664 0000000 0000000 00000005003 14547017602 0024063 0 ustar 00root root 0000000 0000000 name: ci
on:
push:
pull_request:
branches:
- main
defaults:
run:
shell: bash
env:
LANG: en_US.utf-8
LC_ALL: en_US.utf-8
PYTHONIOENCODING: UTF-8
jobs:
quality:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Fetch all tags
run: git fetch --depth=1 --tags
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: "3.8"
- name: Resolving dependencies
run: pdm lock -v --no-cross-platform -G ci-quality
- name: Install dependencies
run: pdm install -G ci-quality
- name: Check if the documentation builds correctly
run: pdm run duty check-docs
- name: Check the code quality
run: pdm run duty check-quality
- name: Check if the code is correctly typed
run: pdm run duty check-types
- name: Check for vulnerabilities in dependencies
run: pdm run duty check-dependencies
- name: Check for breaking changes in the API
run: pdm run duty check-api
exclude-test-jobs:
runs-on: ubuntu-latest
outputs:
jobs: ${{ steps.exclude-jobs.outputs.jobs }}
steps:
- id: exclude-jobs
run: |
if ${{ github.repository_owner == 'pawamoy-insiders' }}; then
echo 'jobs=[
{"os": "macos-latest"},
{"os": "windows-latest"},
{"python-version": "3.9"},
{"python-version": "3.10"},
{"python-version": "3.11"},
{"python-version": "3.12"}
]' | tr -d '[:space:]' >> $GITHUB_OUTPUT
else
echo 'jobs=[]' >> $GITHUB_OUTPUT
fi
tests:
needs: exclude-test-jobs
strategy:
max-parallel: 4
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
exclude: ${{ fromJSON(needs.exclude-test-jobs.outputs.jobs) }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.python-version == '3.12' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}
allow-python-prereleases: true
- name: Resolving dependencies
run: pdm lock -v --no-cross-platform -G ci-tests
- name: Install dependencies
run: pdm install --no-editable -G ci-tests
- name: Run the test suite
run: pdm run duty test
mkdocstrings-python-handlers-1.8.0/.github/workflows/release.yml 0000664 0000000 0000000 00000002546 14547017602 0025121 0 ustar 00root root 0000000 0000000 name: release
on: push
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Fetch all tags
run: git fetch --depth=1 --tags
- name: Setup Python
uses: actions/setup-python@v4
- name: Install build
if: github.repository_owner == 'pawamoy-insiders'
run: python -m pip install build
- name: Build dists
if: github.repository_owner == 'pawamoy-insiders'
run: python -m build
- name: Upload dists artifact
uses: actions/upload-artifact@v3
if: github.repository_owner == 'pawamoy-insiders'
with:
name: python-insiders
path: ./dist/*
- name: Install git-changelog
if: github.repository_owner != 'pawamoy-insiders'
run: pip install git-changelog
- name: Prepare release notes
if: github.repository_owner != 'pawamoy-insiders'
run: git-changelog --release-notes > release-notes.md
- name: Create release with assets
uses: softprops/action-gh-release@v1
if: github.repository_owner == 'pawamoy-insiders'
with:
files: ./dist/*
- name: Create release
uses: softprops/action-gh-release@v1
if: github.repository_owner != 'pawamoy-insiders'
with:
body_path: release-notes.md
mkdocstrings-python-handlers-1.8.0/.gitignore 0000664 0000000 0000000 00000000314 14547017602 0021340 0 ustar 00root root 0000000 0000000 .idea/
__pycache__/
*.py[cod]
dist/
*.egg-info/
build/
htmlcov/
.coverage*
pip-wheel-metadata/
.pytest_cache/
.mypy_cache/
site/
pdm.lock
pdm.toml
.pdm-plugins/
.pdm-python
__pypackages__/
.venv/
.cache/
mkdocstrings-python-handlers-1.8.0/.gitpod.dockerfile 0000664 0000000 0000000 00000000174 14547017602 0022751 0 ustar 00root root 0000000 0000000 FROM gitpod/workspace-full
USER gitpod
ENV PIP_USER=no
RUN pip3 install pipx; \
pipx install pdm; \
pipx ensurepath
mkdocstrings-python-handlers-1.8.0/.gitpod.yml 0000664 0000000 0000000 00000000217 14547017602 0021441 0 ustar 00root root 0000000 0000000 vscode:
extensions:
- ms-python.python
image:
file: .gitpod.dockerfile
ports:
- port: 8000
onOpen: notify
tasks:
- init: make setup
mkdocstrings-python-handlers-1.8.0/CHANGELOG.md 0000664 0000000 0000000 00000104072 14547017602 0021167 0 ustar 00root root 0000000 0000000 # Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [1.8.0](https://github.com/mkdocstrings/python/releases/tag/1.8.0) - 2024-01-08
[Compare with 1.7.5](https://github.com/mkdocstrings/python/compare/1.7.5...1.8.0)
### Features
- Release Insiders features of the $500/month funding goal ([bd30106](https://github.com/mkdocstrings/python/commit/bd301061fe9c647f9b91c2c9b4baa784c304eca7) by Timothée Mazzucotelli).
The features and projects related to *mkdocstrings-python* are:
- [Cross-references for type annotations in signatures](https://mkdocstrings.github.io/python/usage/configuration/signatures/#signature_crossrefs)
- [Symbol types in headings and table of contents](https://mkdocstrings.github.io/python/usage/configuration/headings/#show_symbol_type_toc)
- [`griffe-inherited-docstrings`](https://mkdocstrings.github.io/griffe-inherited-docstrings/), a Griffe extension for inheriting docstrings
- [`griffe2md`](https://mkdocstrings.github.io/griffe2md/), a tool to output API docs to Markdown using Griffe
See the complete list of features and projects here:
https://pawamoy.github.io/insiders/#500-plasmavac-user-guide.
## [1.7.5](https://github.com/mkdocstrings/python/releases/tag/1.7.5) - 2023-11-21
[Compare with 1.7.4](https://github.com/mkdocstrings/python/compare/1.7.4...1.7.5)
### Bug Fixes
- Add missing translations (fallback theme) for ReadTheDocs ([2fb6513](https://github.com/mkdocstrings/python/commit/2fb651304d0a80fa9d6a8c77c16b3004bda22972) by Timothée Mazzucotelli). [Issue #115](https://github.com/mkdocstrings/python/issues/115)
## [1.7.4](https://github.com/mkdocstrings/python/releases/tag/1.7.4) - 2023-11-12
[Compare with 1.7.3](https://github.com/mkdocstrings/python/compare/1.7.3...1.7.4)
### Bug Fixes
- Make extension paths relative to config file ([5035e92](https://github.com/mkdocstrings/python/commit/5035e9269fe11664fd25e438ac8f746721b3de0a) by Waylan Limberg). [PR #112](https://github.com/mkdocstrings/python/pull/112), Co-authored-by: Timothée Mazzucotelli
### Code Refactoring
- Prepare for Griffe 0.37 ([b5bb8a9](https://github.com/mkdocstrings/python/commit/b5bb8a982e7a2ec97c73335e453d0033bf4987b6) by Timothée Mazzucotelli).
## [1.7.3](https://github.com/mkdocstrings/python/releases/tag/1.7.3) - 2023-10-09
[Compare with 1.7.2](https://github.com/mkdocstrings/python/compare/1.7.2...1.7.3)
### Bug Fixes
- Don't deepcopy the local config ([1300d2c](https://github.com/mkdocstrings/python/commit/1300d2c77dd49f5dea459ad844d72edcc856c4cd) by Timothée Mazzucotelli).
## [1.7.2](https://github.com/mkdocstrings/python/releases/tag/1.7.2) - 2023-10-05
[Compare with 1.7.1](https://github.com/mkdocstrings/python/compare/1.7.1...1.7.2)
### Bug Fixes
- Prevent alias resolution error when source-ordering members ([67df10c](https://github.com/mkdocstrings/python/commit/67df10cbb86225e1e3efc251325cbff883a1ef3c) by Timothée Mazzucotelli). [Issue griffe#213](https://github.com/mkdocstrings/griffe/issues/213)
### Code Refactoring
- Use package relative filepath if filepath is not relative ([aa5a3f7](https://github.com/mkdocstrings/python/commit/aa5a3f7b0928498ba9da10ed1211d1e55b7f6c4b) by Timothée Mazzucotelli). [Discussion mkdocstrings#622](https://github.com/mkdocstrings/mkdocstrings/discussions/622)
## [1.7.1](https://github.com/mkdocstrings/python/releases/tag/1.7.1) - 2023-09-28
[Compare with 1.7.0](https://github.com/mkdocstrings/python/compare/1.7.0...1.7.1)
### Bug Fixes
- Stop propagation of annotation to next parameter in signature template ([3a760ac](https://github.com/mkdocstrings/python/commit/3a760acacfabaef5abc658ee579e1c205e674994) by Timothée Mazzucotelli). [Issue #110](https://github.com/mkdocstrings/python/issues/110)
### Code Refactoring
- Look into inherited members for `__init__` methods when merging docstrings ([b97d51f](https://github.com/mkdocstrings/python/commit/b97d51f67c2ee3d1edfe6975274ead50fcb3fa8f) by Timothée Mazzucotelli). [Issue #106](https://github.com/mkdocstrings/python/issues/106)
## [1.7.0](https://github.com/mkdocstrings/python/releases/tag/1.7.0) - 2023-09-14
[Compare with 1.6.3](https://github.com/mkdocstrings/python/compare/1.6.3...1.7.0)
### Features
- Add option to unwrap `Annotated` types ([53db04b](https://github.com/mkdocstrings/python/commit/53db04b6256db960aebc2a9f91129b82ca222e41) by Timothée Mazzucotelli).
## [1.6.3](https://github.com/mkdocstrings/python/releases/tag/1.6.3) - 2023-09-11
[Compare with 1.6.2](https://github.com/mkdocstrings/python/compare/1.6.2...1.6.3)
### Bug Fixes
- Make `load_external_modules` a global-only option ([266f41f](https://github.com/mkdocstrings/python/commit/266f41f2033e034060001bc2bed376b4f3a8d7b8) by Timothée Mazzucotelli). [Issue #87](https://github.com/mkdocstrings/python/issues/87)
- Never fail when trying to format code with Black ([df24bbc](https://github.com/mkdocstrings/python/commit/df24bbc640886e1da2d00a3b58c1aa7736cb1eeb) by Timothée Mazzucotelli).
### Code Refactoring
- Wrap docstring section elements (list style) in code tags to prevent spell checker errors ([1ae8dd8](https://github.com/mkdocstrings/python/commit/1ae8dd89cddd67c09d7d30c59b9013516cea2924) by Timothée Mazzucotelli).
## [1.6.2](https://github.com/mkdocstrings/python/releases/tag/1.6.2) - 2023-09-05
[Compare with 1.6.1](https://github.com/mkdocstrings/python/compare/1.6.1...1.6.2)
### Bug Fixes
- Don't render cross-ref spans when they're not enabled ([eed51ee](https://github.com/mkdocstrings/python/commit/eed51ee14bd973a08395f95377f9bd4cd38febfc) by Timothée Mazzucotelli).
## [1.6.1](https://github.com/mkdocstrings/python/releases/tag/1.6.1) - 2023-09-04
[Compare with 1.6.0](https://github.com/mkdocstrings/python/compare/1.6.0...1.6.1)
### Bug Fixes
- Fix spacing for rendered named items in Yields, Receives and Returns sections (list style) ([e12688e](https://github.com/mkdocstrings/python/commit/e12688ecb7d868047f794300eb2638d052563e68) by Timothée Mazzucotelli).
- Fix rendering Receives sections as lists ([9ff7e68](https://github.com/mkdocstrings/python/commit/9ff7e68b58e2ab0829c73e4e62254325a4f766ac) by Timothée Mazzucotelli).
## [1.6.0](https://github.com/mkdocstrings/python/releases/tag/1.6.0) - 2023-08-27
[Compare with 1.5.2](https://github.com/mkdocstrings/python/compare/1.5.2...1.6.0)
### Features
- Add `doc-signature` CSS class to separate signature code blocks ([b6c648f](https://github.com/mkdocstrings/python/commit/b6c648f554f2e0dce609afc2a2c1a3b27a4fbeba) by Timothée Mazzucotelli).
### Code Refactoring
- Add a `format_attribute` filter, preparing for cross-refs in attribute signatures ([8f0ade2](https://github.com/mkdocstrings/python/commit/8f0ade249638ee2f2d446f083c70b6c30799875a) by Timothée Mazzucotelli).
## [1.5.2](https://github.com/mkdocstrings/python/releases/tag/1.5.2) - 2023-08-25
[Compare with 1.5.1](https://github.com/mkdocstrings/python/compare/1.5.1...1.5.2)
### Bug Fixes
- Regression in children template: fix condition for when members are specified ([beeebff](https://github.com/mkdocstrings/python/commit/beeebffa36288d1f71d122f78ecd9064b41a75d0) by Timothée Mazzucotelli). [Issue #100](https://github.com/mkdocstrings/python/issues/100)
- Prevent whitespace removal before highlight filter ([c6f36c0](https://github.com/mkdocstrings/python/commit/c6f36c0c9e5141800f8c5c988c9b67720fccccb8) by Timothée Mazzucotelli).
### Code Refactoring
- Never show full object path in ToC entry ([9aa758b](https://github.com/mkdocstrings/python/commit/9aa758bcc42dfcf7c416d87b8f7cd407b7fdf148) by Timothée Mazzucotelli).
- Sync templates with insiders, remove useless lines ([38b317f](https://github.com/mkdocstrings/python/commit/38b317f4fc74b583a4788721a5559c51a5a47d86) by Timothée Mazzucotelli).
## [1.5.1](https://github.com/mkdocstrings/python/releases/tag/1.5.1) - 2023-08-24
[Compare with 1.5.0](https://github.com/mkdocstrings/python/compare/1.5.0...1.5.1)
### Code Refactoring
- Never show full path in separate signature since it would appear in the heading already ([9e02049](https://github.com/mkdocstrings/python/commit/9e0204930cf4dc973ba8eb41c471fc0132e1631f) by Timothée Mazzucotelli).
- Improve guessing whether an object is public ([35eb811](https://github.com/mkdocstrings/python/commit/35eb81162582d794f170cd7e8c68f10ecfd8ff9d) by Timothée Mazzucotelli).
- Always sort modules alphabetically as source order wouldn't make sense ([70c81ce](https://github.com/mkdocstrings/python/commit/70c81cebb62366cbfc6124bc84d1563db176afb6) by Timothée Mazzucotelli).
- Return anchors as a tuple, not a set, to preserve order ([736a2b5](https://github.com/mkdocstrings/python/commit/736a2b5e729d25bb184db8d42f2ad01025a5bc58) by Timothée Mazzucotelli). [Related-to #mkdocstrings/crystal#6](https://github.com/mkdocstrings/crystal/pull/6)
## [1.5.0](https://github.com/mkdocstrings/python/releases/tag/1.5.0) - 2023-08-20
[Compare with 1.4.0](https://github.com/mkdocstrings/python/compare/1.4.0...1.5.0)
### Features
- Add support for new Griffe docstring sections: modules, classes, and functions (methods) ([d5337af](https://github.com/mkdocstrings/python/commit/d5337afdf68fc492b34f749aa69d1da33b49f9c2) by Timothée Mazzucotelli).
## [1.4.0](https://github.com/mkdocstrings/python/releases/tag/1.4.0) - 2023-08-18
[Compare with 1.3.0](https://github.com/mkdocstrings/python/compare/1.3.0...1.4.0)
### Features
- Support new Griffe expressions (in v0.33) ([9b8e1b1](https://github.com/mkdocstrings/python/commit/9b8e1b1604b978cf2d89b7abf826cf4407f92394) by Timothée Mazzucotelli).
### Code Refactoring
- Deprecate `crossref` and `multi_crossref` filters ([4fe3d20](https://github.com/mkdocstrings/python/commit/4fe3d2051047061780e20683da6513a7c8d91829) by Timothée Mazzucotelli).
## [1.3.0](https://github.com/mkdocstrings/python/releases/tag/1.3.0) - 2023-08-06
[Compare with 1.2.1](https://github.com/mkdocstrings/python/compare/1.2.1...1.3.0)
### Dependencies
- Set upper bound on Griffe (0.33) ([ad8c2a3](https://github.com/mkdocstrings/python/commit/ad8c2a3ac8daf0b0c06579b6ba667e05feffa247) by Timothée Mazzucotelli). See https://github.com/mkdocstrings/griffe/discussions/195.
### Features
- Show parameter default values within the "list" section style too ([55f08f3](https://github.com/mkdocstrings/python/commit/55f08f3e2cece815dd79d35c82515ba8003ec64c) by Antoine Dechaume). [PR #92](https://github.com/mkdocstrings/python/pull/92), Co-authored-by: Timothée Mazzucotelli
## [1.2.1](https://github.com/mkdocstrings/python/releases/tag/1.2.1) - 2023-07-20
[Compare with 1.2.0](https://github.com/mkdocstrings/python/compare/1.2.0...1.2.1)
### Bug Fixes
- Fix members ordering when members are specified with a boolean ([c69f9c3](https://github.com/mkdocstrings/python/commit/c69f9c3b3ddde915619eded6620f7ddada977b00) by Timothée Mazzucotelli). [Issue #89](https://github.com/mkdocstrings/python/issues/89)
## [1.2.0](https://github.com/mkdocstrings/python/releases/tag/1.2.0) - 2023-07-14
[Compare with 1.1.2](https://github.com/mkdocstrings/python/compare/1.1.2...1.2.0)
### Features
- Add Jinja blocks to module, class, function and attribute templates ([299fe48](https://github.com/mkdocstrings/python/commit/299fe483cc03ba76df29b843f88467f89db6dc72) by Timothée Mazzucotelli).
- Setup infrastructure for I18N, add translations for simplified chinese and japanese ([b053b29](https://github.com/mkdocstrings/python/commit/b053b2900ef5c0069b68ad19bda9aaa98141a525) by Nyuan Zhang). [PR #77](https://github.com/mkdocstrings/python/pull/77)
- Support inheritance ([ae42356](https://github.com/mkdocstrings/python/commit/ae4235689155a4b4f0c1e74b0014a466c6b1181f) by Timothée Mazzucotelli). [Issue mkdocstrings#157](https://github.com/mkdocstrings/mkdocstrings/issues/157), [Discussion mkdocstrings#536](https://github.com/mkdocstrings/mkdocstrings/discussions/536)
### Bug Fixes
- Don't show `None` as return annotation of class signatures ([3d8724e](https://github.com/mkdocstrings/python/commit/3d8724ed1f4d040d7a3d9d02784cf0d1f80445b2) by Timothée Mazzucotelli). [Issue #85](https://github.com/mkdocstrings/python/issues/85)
- Show labels in deterministic order ([02619a8](https://github.com/mkdocstrings/python/commit/02619a85ee4aab25f3241d983bdfff0534dd3f81) by Oleh Prypin).
## [1.1.2](https://github.com/mkdocstrings/python/releases/tag/1.1.2) - 2023-06-04
[Compare with 1.1.1](https://github.com/mkdocstrings/python/compare/1.1.1...1.1.2)
### Code Refactoring
- Keep headings style consistent (CSS) ([92032e5](https://github.com/mkdocstrings/python/commit/92032e561861c3fc4e3fb0c6882bb076d0e6614d) by Timothée Mazzucotelli).
## [1.1.1](https://github.com/mkdocstrings/python/releases/tag/1.1.1) - 2023-06-04
[Compare with 1.1.0](https://github.com/mkdocstrings/python/compare/1.1.0...1.1.1)
### Bug Fixes
- Fix mkdocs and readthedocs themes support ([14f18b2](https://github.com/mkdocstrings/python/commit/14f18b219f67f9b6d154d4a52051d8d7d7c49348) by Timothée Mazzucotelli).
### Code Refactoring
- Improve display of paragraphs in docstring sections ([439f5e6](https://github.com/mkdocstrings/python/commit/439f5e6984fe94c28324ca57fbd1a52ef8f55b62) by Timothée Mazzucotelli).
## [1.1.0](https://github.com/mkdocstrings/python/releases/tag/1.1.0) - 2023-05-25
[Compare with 1.0.0](https://github.com/mkdocstrings/python/compare/1.0.0...1.1.0)
### Features
- Support custom templates through objects' extra data ([8ff2b06](https://github.com/mkdocstrings/python/commit/8ff2b06295e848b9c84867802eb845adf061dc10) by Timothée Mazzucotelli). [PR #70](https://github.com/mkdocstrings/python/pull/70)
## [1.0.0](https://github.com/mkdocstrings/python/releases/tag/1.0.0) - 2023-05-11
[Compare with 0.10.1](https://github.com/mkdocstrings/python/compare/0.10.1...1.0.0)
### Breaking changes
- The signature of the [`format_signature` filter](https://mkdocstrings.github.io/python/reference/mkdocstrings_handlers/python/rendering/#mkdocstrings_handlers.python.rendering.do_format_signature) has changed.
If you override templates in your project to customize the output,
make sure to update the following templates so that they use
the new filter signature:
- `class.html`
- `expression.html`
- `function.html`
- `signature.html`
You can see how to use the filter in this commit's changes:
[f686f4e4](https://github.com/mkdocstrings/python/commit/f686f4e4599cea64686d4ef4863b507dd096a513).
**We take this as an opportunity to go out of beta and bump the version to 1.0.0.
This will allow users to rely on semantic versioning.**
### Bug Fixes
- Bring compatibility with insiders signature crossrefs feature ([f686f4e](https://github.com/mkdocstrings/python/commit/f686f4e4599cea64686d4ef4863b507dd096a513) by Timothée Mazzucotelli).
## [0.10.1](https://github.com/mkdocstrings/python/releases/tag/0.10.1) - 2023-05-07
[Compare with 0.10.0](https://github.com/mkdocstrings/python/compare/0.10.0...0.10.1)
### Bug Fixes
- Format signatures with full-path names ([685512d](https://github.com/mkdocstrings/python/commit/685512decf1a14c53fa6ca82048e65619aa6a463) by Timothée Mazzucotelli).
## [0.10.0](https://github.com/mkdocstrings/python/releases/tag/0.10.0) - 2023-05-07
[Compare with 0.9.0](https://github.com/mkdocstrings/python/compare/0.9.0...0.10.0)
### Features
- Add option to disallow inspection ([40f2f26](https://github.com/mkdocstrings/python/commit/40f2f268876358941cf8221d01d219a0deb9de38) by Nyuan Zhang). [Issue #68](https://github.com/mkdocstrings/python/issues/68), [PR #69](https://github.com/mkdocstrings/python/pull/69)
### Bug Fixes
- Make admonitions open by default ([79cd153](https://github.com/mkdocstrings/python/commit/79cd153cfceec860f6ce08d30817c21031983238) by Timothée Mazzucotelli). [Issue #22](https://github.com/mkdocstrings/python/issues/22)
### Code Refactoring
- Match documented behavior for filtering (all members, list, none) ([c7f70c3](https://github.com/mkdocstrings/python/commit/c7f70c353c3dd2b82e1f34c70cd433e0bab4f6e6) by Timothée Mazzucotelli).
- Switch to an info level log for when black's not installed ([f593bb0](https://github.com/mkdocstrings/python/commit/f593bb06c63860be14d2025c4bd795e0c8976ce0) by Faster Speeding).
- Return anchors as a set ([e2b820c](https://github.com/mkdocstrings/python/commit/e2b820c5af3787518656d5f7f799ecb6b55aa033) by Timothée Mazzucotelli).
## [0.9.0](https://github.com/mkdocstrings/python/releases/tag/0.9.0) - 2023-04-03
[Compare with 0.8.3](https://github.com/mkdocstrings/python/compare/0.8.3...0.9.0)
### Features
- Allow resolving alias to external modules ([02052e2](https://github.com/mkdocstrings/python/commit/02052e248b125a113ab788faa9a075adbdc92ca6) by Gilad). [PR #61](https://github.com/mkdocstrings/python/pull/61), [Follow-up of PR #60](https://github.com/mkdocstrings/python/pull/60)
- Allow pre-loading modules ([36002cb](https://github.com/mkdocstrings/python/commit/36002cb9c89fba35d23afb07a866dd8c6877f742) by Gilad). [Issue mkdocstrings/mkdocstrings#503](https://github.com/mkdocstrings/mkdocstrings/issues/503), [PR #60](https://github.com/mkdocstrings/python/pull/60)
- Add show options for docstrings ([a6c55fb](https://github.com/mkdocstrings/python/commit/a6c55fb52f362dd49b1a7e334a631f6ea3b1b963) by Jeremy Goh). [Issue mkdocstrings/mkdocstrings#466](https://github.com/mkdocstrings/mkdocstrings/issues/466), [PR #56](https://github.com/mkdocstrings/python/pull/56)
- Allow custom list of domains for inventories ([f5ea6fd](https://github.com/mkdocstrings/python/commit/f5ea6fd81f7a531e8a97bb0e48267188d72936c1) by Sorin Sbarnea). [Issue mkdocstrings/mkdocstrings#510](https://github.com/mkdocstrings/mkdocstrings/issues/510), [PR #49](https://github.com/mkdocstrings/python/pull/49)
### Bug Fixes
- Prevent alias resolution error when searching for anchors ([a190e2c](https://github.com/mkdocstrings/python/commit/a190e2c4a752e74a05ad03702837a0914c198742) by Timothée Mazzucotelli). [Issue #64](https://github.com/mkdocstrings/python/issues/64)
### Code Refactoring
- Support Griffe 0.26 ([075735c](https://github.com/mkdocstrings/python/commit/075735ce8d86921fbf092d7ad1d009bbb3a2e0bb) by Timothée Mazzucotelli).
- Log (debug) unresolved aliases ([9164742](https://github.com/mkdocstrings/python/commit/9164742f87362e8241dea11bec0fd96f6b9d9dda) by Timothée Mazzucotelli).
## [0.8.3](https://github.com/mkdocstrings/python/releases/tag/0.8.3) - 2023-01-04
[Compare with 0.8.2](https://github.com/mkdocstrings/python/compare/0.8.2...0.8.3)
### Code Refactoring
- Change "unresolved aliases" log level to DEBUG ([dccb818](https://github.com/mkdocstrings/python/commit/dccb818f51278cc8799e2187a615d999a3ab86fb) by Timothée Mazzucotelli).
## [0.8.2](https://github.com/mkdocstrings/python/releases/tag/0.8.2) - 2022-11-19
[Compare with 0.8.1](https://github.com/mkdocstrings/python/compare/0.8.1...0.8.2)
### Bug Fixes
- Fix base directory used to expand globs ([34cfa4b](https://github.com/mkdocstrings/python/commit/34cfa4b41f264437a338e66f6060ceeee134ba15) by Florian Hofer). [PR #45](https://github.com/mkdocstrings/python/pull/45)
## [0.8.1](https://github.com/mkdocstrings/python/releases/tag/0.8.1) - 2022-11-19
[Compare with 0.8.0](https://github.com/mkdocstrings/python/compare/0.8.0...0.8.1)
### Bug Fixes
- Expand globs relative to configuration file path ([0dc45ae](https://github.com/mkdocstrings/python/commit/0dc45aeb7c7f9b2f15118ebf1584baa06d365c9b) by David Vegh). [Issue #42](https://github.com/mkdocstrings/python/issues/42), [PR #43](https://github.com/mkdocstrings/python/pull/43)
## [0.8.0](https://github.com/mkdocstrings/python/releases/tag/0.8.0) - 2022-11-13
[Compare with 0.7.1](https://github.com/mkdocstrings/python/compare/0.7.1...0.8.0)
### Features
- Add support for globs in paths configuration ([29edd02](https://github.com/mkdocstrings/python/commit/29edd02e7a4d83f6b7e8555d4d5b03a79882eb07) by Andrew Guenther). [Issue #33](https://github.com/mkdocstrings/python/issues/33), [PR #34](https://github.com/mkdocstrings/python/pull/34)
### Code Refactoring
- Support Griffe 0.24 ([3b9f701](https://github.com/mkdocstrings/python/commit/3b9f7013a7367f18e4354c37f029f9caf3ad0a4e) by Timothée Mazzucotelli).
## [0.7.1](https://github.com/mkdocstrings/python/releases/tag/0.7.1) - 2022-06-12
[Compare with 0.7.0](https://github.com/mkdocstrings/python/compare/0.7.0...0.7.1)
### Bug Fixes
- Fix rendering of `/` in signatures ([3e927e4](https://github.com/mkdocstrings/python/commit/3e927e43192710218fe69f67ff832936c856a678) by Timothée Mazzucotelli). [Issue #25](https://github.com/mkdocstrings/python/issues/25)
## [0.7.0](https://github.com/mkdocstrings/python/releases/tag/0.7.0) - 2022-05-28
[Compare with 0.6.6](https://github.com/mkdocstrings/python/compare/0.6.6...0.7.0)
### Packaging / Dependencies
- Depend on mkdocstrings 0.19 ([b6a9a47](https://github.com/mkdocstrings/python/commit/b6a9a4799980c4590a7ce2838e12653f40e43be3) by Timothée Mazzucotelli).
### Features
- Add config option for annotations paths verbosity ([b6c9893](https://github.com/mkdocstrings/python/commit/b6c989315fb028813a919319ad1818b0b1f597ac) by Timothée Mazzucotelli).
- Use sections titles in SpaCy-styled docstrings ([fe16b54](https://github.com/mkdocstrings/python/commit/fe16b54aea60473575343e3a3c428567b701bd7d) by Timothée Mazzucotelli).
- Wrap objects names in spans to allow custom styling ([0822ff9](https://github.com/mkdocstrings/python/commit/0822ff9d3ffd3fb71fb619a8b557160661eff9c3) by Timothée Mazzucotelli). [Issue mkdocstrings/mkdocstrings#240](https://github.com/mkdocstrings/mkdocstrings/issues/240)
- Add Jinja blocks around docstring section styles ([aaa79ee](https://github.com/mkdocstrings/python/commit/aaa79eea40d49a64a69badbe732bf5211fbf055a) by Timothée Mazzucotelli).
- Add members and filters options ([24a6136](https://github.com/mkdocstrings/python/commit/24a6136ee6c04a6a49ee74b20e65177868a10ea7) by Timothée Mazzucotelli).
- Add paths option ([dd41182](https://github.com/mkdocstrings/python/commit/dd41182c210f0bb2675ead162adaa01dbbb1949f) by Timothée Mazzucotelli). [Issue mkdocstrings/mkdocstrings#311](https://github.com/mkdocstrings/mkdocstrings/issues/311), [PR #20](https://github.com/mkdocstrings/python/issues/20)
### Bug Fixes
- Fix CSS class on labels ([312a709](https://github.com/mkdocstrings/python/commit/312a7092394aab968032cf08195af7445a85052f) by Timothée Mazzucotelli).
- Fix categories rendering ([6407cf4](https://github.com/mkdocstrings/python/commit/6407cf4f2375c894e0c528e932e9b76774a6455e) by Timothée Mazzucotelli). [Issue #14](https://github.com/mkdocstrings/python/issues/14)
### Code Refactoring
- Disable `show_submodules` by default ([480d0c3](https://github.com/mkdocstrings/python/commit/480d0c373904713313ec76b6e2570dbc35eb527b) by Timothée Mazzucotelli).
- Merge default configuration options in handler ([347ce76](https://github.com/mkdocstrings/python/commit/347ce76d074c0e3841df2d5162b54d3938d00453) by Timothée Mazzucotelli).
- Reduce number of template debug logs ([8fed314](https://github.com/mkdocstrings/python/commit/8fed314243e3981fc7b527c69cee628e87b10220) by Timothée Mazzucotelli).
- Respect `show_root_full_path` for ToC entries (hidden headings) ([8f4c853](https://github.com/mkdocstrings/python/commit/8f4c85328e8b4a45db77f9fc3e536a5008686f37) by Timothée Mazzucotelli).
- Bring consistency on headings style ([59104c4](https://github.com/mkdocstrings/python/commit/59104c4c51c86c774eed76d8508f9f4d3db5463f) by Timothée Mazzucotelli).
- Stop using deprecated base classes ([d5ea1c5](https://github.com/mkdocstrings/python/commit/d5ea1c5cf7884d8c019145f73685a84218e69840) by Timothée Mazzucotelli).
## [0.6.6](https://github.com/mkdocstrings/python/releases/tag/0.6.6) - 2022-03-06
[Compare with 0.6.5](https://github.com/mkdocstrings/python/compare/0.6.5...0.6.6)
### Code Refactoring
- Always hide `self` and `cls` parameters ([7f579d1](https://github.com/mkdocstrings/python/commit/7f579d162e184adcfe25b2215bce4d38677f75b7) by Timothée Mazzucotelli). [Issue #7](https://github.com/mkdocstrings/python/issues/7)
- Use `pycon` for examples code blocks ([6545900](https://github.com/mkdocstrings/python/commit/6545900eecc67c8a6ddd343c497ac22fdd6a26e2) by Timothée Mazzucotelli).
## [0.6.5](https://github.com/mkdocstrings/python/releases/tag/0.6.5) - 2022-02-24
[Compare with 0.6.4](https://github.com/mkdocstrings/python/compare/0.6.4...0.6.5)
### Bug Fixes
- Don't escape signatures return annotations ([ac54bfc](https://github.com/mkdocstrings/python/commit/ac54bfc5761337aa606fb1aa6575745062ce26f8) by Timothée Mazzucotelli). [Issue #6](https://github.com/mkdocstrings/python/issues/6)
## [0.6.4](https://github.com/mkdocstrings/python/releases/tag/0.6.4) - 2022-02-22
[Compare with 0.6.3](https://github.com/mkdocstrings/python/compare/0.6.3...0.6.4)
### Bug Fixes
- Fix rendering of signature return annotation ([b92ba3b](https://github.com/mkdocstrings/python/commit/b92ba3b370388aa6c956bcc70ba87b7aebb91a4c) by Timothée Mazzucotelli). [Issue #4](https://github.com/mkdocstrings/python/issues/4)
## [0.6.3](https://github.com/mkdocstrings/python/releases/tag/0.6.3) - 2022-02-20
[Compare with 0.6.2](https://github.com/mkdocstrings/python/compare/0.6.2...0.6.3)
### Bug Fixes
- Fix examples rendering ([a06a7e3](https://github.com/mkdocstrings/python/commit/a06a7e34c7017374c5bed41f4757ed86ae64cb2e) by Timothée Mazzucotelli). [Issue mkdocstrings/griffe#46](https://github.com/mkdocstrings/griffe/issues/46)
## [0.6.2](https://github.com/mkdocstrings/python/releases/tag/0.6.2) - 2022-02-17
[Compare with 0.6.1](https://github.com/mkdocstrings/python/compare/0.6.1...0.6.2)
### Bug Fixes
- Catch alias resolution errors ([b734dd0](https://github.com/mkdocstrings/python/commit/b734dd0dcd72f5b985b3afce01e852c9c74e451a) by Timothée Mazzucotelli).
## [0.6.1](https://github.com/mkdocstrings/python/releases/tag/0.6.1) - 2022-02-17
[Compare with 0.6.0](https://github.com/mkdocstrings/python/compare/0.6.0...0.6.1)
### Bug Fixes
- Don't pop from fallback config ([bde32af](https://github.com/mkdocstrings/python/commit/bde32afb5d99539813b1884a4c735de5845f62ae) by Timothée Mazzucotelli).
- Fix rendering init method source when merged into class ([4a20aea](https://github.com/mkdocstrings/python/commit/4a20aeaa60f3efbcb4781a369feef3b4826ff1df) by Timothée Mazzucotelli).
## [0.6.0](https://github.com/mkdocstrings/python/releases/tag/0.6.0) - 2022-02-13
[Compare with 0.5.4](https://github.com/mkdocstrings/python/compare/0.5.4...0.6.0)
### Features
- Add option to merge `__init__` methods' docstrings into their classes' docstrings ([1b4d1c0](https://github.com/mkdocstrings/python/commit/1b4d1c0e9254fc51756caed3875fbc8c1da079a6) by Timothée Mazzucotelli).
- Support separate attribute signature ([e962b88](https://github.com/mkdocstrings/python/commit/e962b885f48570762c5bfcefc9b61e5fc1df1c70) by Timothée Mazzucotelli).
### Bug Fixes
- Restore full cross-refs paths on hover ([ac11970](https://github.com/mkdocstrings/python/commit/ac1197062f2e23e819f144fe74a774d504d0ac49) by Timothée Mazzucotelli).
- Fix rendering of labels ([52919c5](https://github.com/mkdocstrings/python/commit/52919c559378a6006bbe931423c5f03eb5883eaf) by Timothée Mazzucotelli).
### Code Refactoring
- Don't add trailing parentheses in functions heading when separate signature ([885696e](https://github.com/mkdocstrings/python/commit/885696e05606d07334e0428128ed688d54098da1) by Timothée Mazzucotelli).
- Use more explicit template debug messages ([f2122d7](https://github.com/mkdocstrings/python/commit/f2122d7fa119ed055ffe2b2bac72d2c643daca1c) by Timothée Mazzucotelli).
## [0.5.4](https://github.com/mkdocstrings/python/releases/tag/0.5.4) - 2022-02-13
[Compare with 0.5.3](https://github.com/mkdocstrings/python/compare/0.5.3...0.5.4)
### Bug Fixes
- Don't load additional modules during fallback ([69b8e25](https://github.com/mkdocstrings/python/commit/69b8e25cddc9e256c5edb8843592a466023aa124) by Timothée Mazzucotelli).
## [0.5.3](https://github.com/mkdocstrings/python/releases/tag/0.5.3) - 2022-02-08
[Compare with 0.5.2](https://github.com/mkdocstrings/python/compare/0.5.2...0.5.3)
### Bug Fixes
- Allow passing `null` as docstring style ([f526816](https://github.com/mkdocstrings/python/commit/f526816ef1d499795c647e6fe184ba91c1d41b1b) by Timothée Mazzucotelli). [Issue #2](https://github.com/mkdocstrings/python/issues/2)
## [0.5.2](https://github.com/mkdocstrings/python/releases/tag/0.5.2) - 2022-02-05
[Compare with 0.5.1](https://github.com/mkdocstrings/python/compare/0.5.1...0.5.2)
### Dependencies
- Require at least mkdocstrings 0.18 ([7abdda4](https://github.com/mkdocstrings/python/commit/7abdda416e25128eec06f3b15aae5058fbc7320c) by Timothée Mazzucotelli).
## [0.5.1](https://github.com/mkdocstrings/python/releases/tag/0.5.1) - 2022-02-03
[Compare with 0.5.0](https://github.com/mkdocstrings/python/compare/0.5.0...0.5.1)
### Dependencies
- Depend on Griffe >= 0.11.1 ([1303557](https://github.com/mkdocstrings/python/commit/1303557928a27a3d9b063baee9d698458f471357) by Timothée Mazzucotelli).
### Code Refactoring
- Move handler into its own module ([b787e78](https://github.com/mkdocstrings/python/commit/b787e78e31652438039775850e55ea956c22e8d0) by Timothée Mazzucotelli).
## [0.5.0](https://github.com/mkdocstrings/python/releases/tag/0.5.0) - 2022-02-03
[Compare with 0.4.1](https://github.com/mkdocstrings/python/compare/0.4.1...0.5.0)
### Features
- Allow changing docstring style of an object ([39240c1](https://github.com/mkdocstrings/python/commit/39240c1497dced15c03f9046138f2829fc10e139) by Timothée Mazzucotelli).
### Bug Fixes
- Warn if Black is not installed when formatting signature ([b848277](https://github.com/mkdocstrings/python/commit/b84827789b2bf66a4b76ff63a514ec6ba98cae68) by Timothée Mazzucotelli).
- Fix missing default for `docstring_section_style` option ([774988e](https://github.com/mkdocstrings/python/commit/774988ef06a9bf3446949da63611ad7bc5a712fc) by Timothée Mazzucotelli).
### Code Refactoring
- Change to new way of stripping paragraphs ([33d4594](https://github.com/mkdocstrings/python/commit/33d45945bf8ffce2435a6b3749795397fa7c3fc8) by Timothée Mazzucotelli).
## [0.4.1](https://github.com/mkdocstrings/python/releases/tag/0.4.1) - 2022-02-01
[Compare with 0.4.0](https://github.com/mkdocstrings/python/compare/0.4.0...0.4.1)
### Bug Fixes
- Fix docstring admonitions rendering ([a24ae2e](https://github.com/mkdocstrings/python/commit/a24ae2e95f4c0451a44037120451cf06c973ba65) by Timothée Mazzucotelli).
## [0.4.0](https://github.com/mkdocstrings/python/releases/tag/0.4.0) - 2022-02-01
[Compare with 0.3.0](https://github.com/mkdocstrings/python/compare/0.3.0...0.4.0)
### Code Refactoring
- Use the new `mkdocstrings_handlers` namespace ([23c9023](https://github.com/mkdocstrings/python/commit/23c9023780535251778077cd7d957c0067ecb0dc) by Timothée Mazzucotelli).
## [0.3.0](https://github.com/mkdocstrings/python/releases/tag/0.3.0) - 2022-01-14
[Compare with 0.2.0](https://github.com/mkdocstrings/python/compare/0.2.0...0.3.0)
### Features
- Support griffe 0.10 ([28061de](https://github.com/mkdocstrings/python/commit/28061de20094c510f27bb375b2e1dc44a699809d) by Timothée Mazzucotelli).
### Dependencies
- Require griffe 0.10 ([cfbd7bb](https://github.com/mkdocstrings/python/commit/cfbd7bb4761691ef36100962c775ed1d0a247514) by Timothée Mazzucotelli).
### Code Refactoring
- Use new logger patching utility ([4cdb292](https://github.com/mkdocstrings/python/commit/4cdb2921b3a9292db3ef0663c63f148a4eec3966) by Timothée Mazzucotelli).
## [0.2.0](https://github.com/mkdocstrings/python/releases/tag/0.2.0) - 2021-12-28
[Compare with 0.1.0](https://github.com/mkdocstrings/python/compare/0.1.0...0.2.0)
### Dependencies
- Depend on griffe >= 0.7.1 ([34f7ebd](https://github.com/mkdocstrings/python/commit/34f7ebd41f3ebda025ad87e3b52a7226fcb93720) by Timothée Mazzucotelli).
- Upgrade griffe, no upper bound ([8f0aa42](https://github.com/mkdocstrings/python/commit/8f0aa42eed07424a1377708897d92f9894f4abdb) by Timothée Mazzucotelli).
### Features
- Add `show_signature` rendering option ([0f07c2e](https://github.com/mkdocstrings/python/commit/0f07c2e51a51a56eeb5d32fdf05dbed7243f0bc5) by Will Da Silva).
### Bug Fixes
- Fix templates for named docstring elements ([47868a1](https://github.com/mkdocstrings/python/commit/47868a143bf2c462abd5ad85bd0ab8dca7bc5f82) by Timothée Mazzucotelli).
## [0.1.0](https://github.com/mkdocstrings/python/releases/tag/0.1.0) - 2021-12-19
[Compare with first commit](https://github.com/mkdocstrings/python/compare/0032f18c9f902c3e75e0e00114ca8fa6a810c8f5...0.1.0)
### Features
- Implement handler and add templates ([dbb580a](https://github.com/mkdocstrings/python/commit/dbb580aa79f6b2f8a089c80bdc67d0f7457c2d30) by Timothée Mazzucotelli).
### Bug Fixes
- Fix separate signature feature ([da6e81c](https://github.com/mkdocstrings/python/commit/da6e81c897899f09e1dae7bb8930ce6782aeb306) by Timothée Mazzucotelli).
- Fix signature template (parameters annotations) ([b34ead0](https://github.com/mkdocstrings/python/commit/b34ead008773880fd8d1d7a2a41768ec27820520) by Timothée Mazzucotelli).
- Only show source when present ([c270d68](https://github.com/mkdocstrings/python/commit/c270d68c9e17204606ae12a2159c04563a18ec2b) by Timothée Mazzucotelli).
### Code Refactoring
- Return all known anchors ([9bbfe14](https://github.com/mkdocstrings/python/commit/9bbfe1442e2aab28bd6fb2618c943d3f698750ab) by Timothée Mazzucotelli).
- Update for griffe 0.4.0 ([831aabb](https://github.com/mkdocstrings/python/commit/831aabb135db7e75729954adc675af6379f58e24) by Timothée Mazzucotelli).
mkdocstrings-python-handlers-1.8.0/CODE_OF_CONDUCT.md 0000664 0000000 0000000 00000012547 14547017602 0022162 0 ustar 00root root 0000000 0000000 # Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, caste, color, religion, or sexual
identity and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
## Our Standards
Examples of behavior that contributes to a positive environment for our
community include:
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the overall
community
Examples of unacceptable behavior include:
* The use of sexualized language or imagery, and sexual attention or advances of
any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email address,
without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.
Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.
## Scope
This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
pawamoy@pm.me.
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series of
actions.
**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or permanent
ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within the
community.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.1, available at
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
For answers to common questions about this code of conduct, see the FAQ at
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
[https://www.contributor-covenant.org/translations][translations].
[homepage]: https://www.contributor-covenant.org
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
[Mozilla CoC]: https://github.com/mozilla/diversity
[FAQ]: https://www.contributor-covenant.org/faq
[translations]: https://www.contributor-covenant.org/translations
mkdocstrings-python-handlers-1.8.0/CONTRIBUTING.md 0000664 0000000 0000000 00000010232 14547017602 0021601 0 ustar 00root root 0000000 0000000 # Contributing
Contributions are welcome, and they are greatly appreciated!
Every little bit helps, and credit will always be given.
## Environment setup
Nothing easier!
Fork and clone the repository, then:
```bash
cd python
make setup
```
> NOTE:
> If it fails for some reason,
> you'll need to install
> [PDM](https://github.com/pdm-project/pdm)
> manually.
>
> You can install it with:
>
> ```bash
> python3 -m pip install --user pipx
> pipx install pdm
> ```
>
> Now you can try running `make setup` again,
> or simply `pdm install`.
You now have the dependencies installed.
Run `make help` to see all the available actions!
## Tasks
This project uses [duty](https://github.com/pawamoy/duty) to run tasks.
A Makefile is also provided. The Makefile will try to run certain tasks
on multiple Python versions. If for some reason you don't want to run the task
on multiple Python versions, you run the task directly with `pdm run duty TASK`.
The Makefile detects if a virtual environment is activated,
so `make` will work the same with the virtualenv activated or not.
If you work in VSCode, we provide
[an action to configure VSCode](https://pawamoy.github.io/copier-pdm/work/#vscode-setup)
for the project.
## Development
As usual:
1. create a new branch: `git switch -c feature-or-bugfix-name`
1. edit the code and/or the documentation
**Before committing:**
1. run `make format` to auto-format the code
1. run `make check` to check everything (fix any warning)
1. run `make test` to run the tests (fix any issue)
1. if you updated the documentation or the project dependencies:
1. run `make docs`
1. go to http://localhost:8000 and check that everything looks good
1. follow our [commit message convention](#commit-message-convention)
If you are unsure about how to fix or ignore a warning,
just let the continuous integration fail,
and we will help you during review.
Don't bother updating the changelog, we will take care of this.
## Commit message convention
Commit messages must follow our convention based on the
[Angular style](https://gist.github.com/stephenparish/9941e89d80e2bc58a153#format-of-the-commit-message)
or the [Karma convention](https://karma-runner.github.io/4.0/dev/git-commit-msg.html):
```
[(scope)]: Subject
[Body]
```
**Subject and body must be valid Markdown.**
Subject must have proper casing (uppercase for first letter
if it makes sense), but no dot at the end, and no punctuation
in general.
Scope and body are optional. Type can be:
- `build`: About packaging, building wheels, etc.
- `chore`: About packaging or repo/files management.
- `ci`: About Continuous Integration.
- `deps`: Dependencies update.
- `docs`: About documentation.
- `feat`: New feature.
- `fix`: Bug fix.
- `perf`: About performance.
- `refactor`: Changes that are not features or bug fixes.
- `style`: A change in code style/format.
- `tests`: About tests.
If you write a body, please add trailers at the end
(for example issues and PR references, or co-authors),
without relying on GitHub's flavored Markdown:
```
Body.
Issue #10: https://github.com/namespace/project/issues/10
Related to PR namespace/other-project#15: https://github.com/namespace/other-project/pull/15
```
These "trailers" must appear at the end of the body,
without any blank lines between them. The trailer title
can contain any character except colons `:`.
We expect a full URI for each trailer, not just GitHub autolinks
(for example, full GitHub URLs for commits and issues,
not the hash or the #issue-number).
We do not enforce a line length on commit messages summary and body,
but please avoid very long summaries, and very long lines in the body,
unless they are part of code blocks that must not be wrapped.
## Pull requests guidelines
Link to any related issue in the Pull Request message.
During the review, we recommend using fixups:
```bash
# SHA is the SHA of the commit you want to fix
git commit --fixup=SHA
```
Once all the changes are approved, you can squash your commits:
```bash
git rebase -i --autosquash main
```
And force-push:
```bash
git push -f
```
If this seems all too complicated, you can push or force-push each new commit,
and we will squash them ourselves if needed, before merging.
mkdocstrings-python-handlers-1.8.0/LICENSE 0000664 0000000 0000000 00000001362 14547017602 0020361 0 ustar 00root root 0000000 0000000 ISC License
Copyright (c) 2021, Timothée Mazzucotelli
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
mkdocstrings-python-handlers-1.8.0/Makefile 0000664 0000000 0000000 00000001610 14547017602 0021010 0 ustar 00root root 0000000 0000000 .DEFAULT_GOAL := help
SHELL := bash
DUTY := $(if $(VIRTUAL_ENV),,pdm run) duty
export PDM_MULTIRUN_VERSIONS ?= 3.8 3.9 3.10 3.11 3.12
args = $(foreach a,$($(subst -,_,$1)_args),$(if $(value $a),$a="$($a)"))
check_quality_args = files
docs_args = host port
release_args = version
test_args = match
BASIC_DUTIES = \
changelog \
check-api \
check-dependencies \
clean \
coverage \
docs \
docs-deploy \
format \
release \
vscode
QUALITY_DUTIES = \
check-quality \
check-docs \
check-types \
test
.PHONY: help
help:
@$(DUTY) --list
.PHONY: lock
lock:
@pdm lock -G:all
.PHONY: setup
setup:
@bash scripts/setup.sh
.PHONY: check
check:
@pdm multirun duty check-quality check-types check-docs
@$(DUTY) check-dependencies check-api
.PHONY: $(BASIC_DUTIES)
$(BASIC_DUTIES):
@$(DUTY) $@ $(call args,$@)
.PHONY: $(QUALITY_DUTIES)
$(QUALITY_DUTIES):
@pdm multirun duty $@ $(call args,$@)
mkdocstrings-python-handlers-1.8.0/README.md 0000664 0000000 0000000 00000010251 14547017602 0020630 0 ustar 00root root 0000000 0000000
The Python handler uses [Griffe](https://mkdocstrings.github.io/griffe)
to collect documentation from Python source code.
The word "griffe" can sometimes be used instead of "signature" in French.
Griffe is able to visit the Abstract Syntax Tree (AST) of the source code to extract useful information.
It is also able to execute the code (by importing it) and introspect objects in memory
when source code is not available. Finally, it can parse docstrings following different styles.
## Installation
You can install this handler as a *mkdocstrings* extra:
```toml title="pyproject.toml"
# PEP 621 dependencies declaration
# adapt to your dependencies manager
[project]
dependencies = [
"mkdocstrings[python]>=0.18",
]
```
You can also explicitly depend on the handler:
```toml title="pyproject.toml"
# PEP 621 dependencies declaration
# adapt to your dependencies manager
[project]
dependencies = [
"mkdocstrings-python",
]
```
## Preview

## Features
- **Data collection from source code**: collection of the object-tree and the docstrings is done thanks to
[Griffe](https://github.com/mkdocstrings/griffe).
- **Support for type annotations:** Griffe collects your type annotations and *mkdocstrings* uses them
to display parameter types or return types. It is even able to automatically add cross-references
to other objects from your API, from the standard library or third-party libraries!
See [how to load inventories](https://mkdocstrings.github.io/usage/#cross-references-to-other-projects-inventories) to enable it.
- **Recursive documentation of Python objects:** just use the module dotted-path as an identifier, and you get the full
module docs. You don't need to inject documentation for each class, function, etc.
- **Support for documented attributes:** attributes (variables) followed by a docstring (triple-quoted string) will
be recognized by Griffe in modules, classes and even in `__init__` methods.
- **Multiple docstring-styles support:** common support for Google-style, Numpydoc-style,
and Sphinx-style docstrings. See [Griffe's documentation](https://mkdocstrings.github.io/griffe/docstrings/) on docstrings support.
- **Admonition support in Google docstrings:** blocks like `Note:` or `Warning:` will be transformed
to their [admonition](https://squidfunk.github.io/mkdocs-material/reference/admonitions/) equivalent.
*We do not support nested admonitions in docstrings!*
- **Every object has a TOC entry:** we render a heading for each object, meaning *MkDocs* picks them into the Table
of Contents, which is nicely displayed by the Material theme. Thanks to *mkdocstrings* cross-reference ability,
you can reference other objects within your docstrings, with the classic Markdown syntax:
`[this object][package.module.object]` or directly with `[package.module.object][]`
- **Source code display:** *mkdocstrings* can add a collapsible div containing the highlighted source code
of the Python object.
mkdocstrings-python-handlers-1.8.0/config/ 0000775 0000000 0000000 00000000000 14547017602 0020617 5 ustar 00root root 0000000 0000000 mkdocstrings-python-handlers-1.8.0/config/black.toml 0000664 0000000 0000000 00000000072 14547017602 0022567 0 ustar 00root root 0000000 0000000 [tool.black]
line-length = 120
exclude = "tests/fixtures"
mkdocstrings-python-handlers-1.8.0/config/coverage.ini 0000664 0000000 0000000 00000000577 14547017602 0023124 0 ustar 00root root 0000000 0000000 [coverage:run]
branch = true
parallel = true
source =
src/mkdocstrings_handlers
tests/
[coverage:paths]
equivalent =
src/
__pypackages__/
[coverage:report]
include_namespace_packages = true
precision = 2
omit =
src/*/__init__.py
src/*/__main__.py
tests/__init__.py
exclude_lines =
pragma: no cover
if TYPE_CHECKING
[coverage:json]
output = htmlcov/coverage.json
mkdocstrings-python-handlers-1.8.0/config/git-changelog.toml 0000664 0000000 0000000 00000000312 14547017602 0024220 0 ustar 00root root 0000000 0000000 bump = "auto"
convention = "angular"
in-place = true
output = "CHANGELOG.md"
parse-refs = false
parse-trailers = true
sections = ["build", "deps", "feat", "fix", "refactor"]
template = "keepachangelog"
mkdocstrings-python-handlers-1.8.0/config/mypy.ini 0000664 0000000 0000000 00000000252 14547017602 0022315 0 ustar 00root root 0000000 0000000 [mypy]
ignore_missing_imports = true
exclude = tests/fixtures/
warn_unused_ignores = true
show_error_codes = true
namespace_packages = true
explicit_package_bases = true
mkdocstrings-python-handlers-1.8.0/config/pytest.ini 0000664 0000000 0000000 00000000547 14547017602 0022656 0 ustar 00root root 0000000 0000000 [pytest]
norecursedirs =
.git
.tox
.env
dist
build
python_files =
test_*.py
*_test.py
tests.py
addopts =
--cov
--cov-config config/coverage.ini
testpaths =
tests
# action:message_regex:warning_class:module_regex:line
filterwarnings =
error
# TODO: remove once pytest-xdist 4 is released
ignore:.*rsyncdir:DeprecationWarning:xdist
mkdocstrings-python-handlers-1.8.0/config/ruff.toml 0000664 0000000 0000000 00000004071 14547017602 0022460 0 ustar 00root root 0000000 0000000 target-version = "py38"
line-length = 132
exclude = [
"fixtures",
"site",
]
select = [
"A",
"ANN",
"ARG",
"B",
"BLE",
"C",
"C4",
"COM",
"D",
"DTZ",
"E",
"ERA",
"EXE",
"F",
"FBT",
"G",
"I",
"ICN",
"INP",
"ISC",
"N",
"PGH",
"PIE",
"PL",
"PLC",
"PLE",
"PLR",
"PLW",
"PT",
"PYI",
"Q",
"RUF",
"RSE",
"RET",
"S",
"SIM",
"SLF",
"T",
"T10",
"T20",
"TCH",
"TID",
"TRY",
"UP",
"W",
"YTT",
]
ignore = [
"A001", # Variable is shadowing a Python builtin
"ANN101", # Missing type annotation for self
"ANN102", # Missing type annotation for cls
"ANN204", # Missing return type annotation for special method __str__
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"ARG005", # Unused lambda argument
"C901", # Too complex
"D105", # Missing docstring in magic method
"D417", # Missing argument description in the docstring
"E501", # Line too long
"ERA001", # Commented out code
"G004", # Logging statement uses f-string
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments to function call
"PLR0915", # Too many statements
"SLF001", # Private member accessed
"TRY003", # Avoid specifying long messages outside the exception class
]
[per-file-ignores]
"src/*/cli.py" = [
"T201", # Print statement
]
"src/*/debug.py" = [
"T201", # Print statement
]
"scripts/*.py" = [
"INP001", # File is part of an implicit namespace package
"T201", # Print statement
]
"tests/*.py" = [
"ARG005", # Unused lambda argument
"FBT001", # Boolean positional arg in function definition
"PLR2004", # Magic value used in comparison
"S101", # Use of assert detected
]
[flake8-quotes]
docstring-quotes = "double"
[flake8-tidy-imports]
ban-relative-imports = "all"
[isort]
known-first-party = ["mkdocstrings_handlers"]
[pydocstyle]
convention = "google"
mkdocstrings-python-handlers-1.8.0/config/vscode/ 0000775 0000000 0000000 00000000000 14547017602 0022102 5 ustar 00root root 0000000 0000000 mkdocstrings-python-handlers-1.8.0/config/vscode/launch.json 0000664 0000000 0000000 00000001571 14547017602 0024253 0 ustar 00root root 0000000 0000000 {
"version": "0.2.0",
"configurations": [
{
"name": "python (current file)",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": false
},
{
"name": "test",
"type": "python",
"request": "launch",
"module": "pytest",
"justMyCode": false,
"args": [
"-c=config/pytest.ini",
"-vvv",
"--no-cov",
"--dist=no",
"tests",
"-k=${input:tests_selection}"
]
}
],
"inputs": [
{
"id": "tests_selection",
"type": "promptString",
"description": "Tests selection",
"default": ""
}
]
} mkdocstrings-python-handlers-1.8.0/config/vscode/settings.json 0000664 0000000 0000000 00000003006 14547017602 0024634 0 ustar 00root root 0000000 0000000 {
"files.watcherExclude": {
"**/__pypackages__/**": true,
"**/.venv*/**": true,
"**/venv*/**": true
},
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"python.autoComplete.extraPaths": [
"__pypackages__/3.8/lib",
"__pypackages__/3.9/lib",
"__pypackages__/3.10/lib",
"__pypackages__/3.11/lib",
"__pypackages__/3.12/lib"
],
"python.analysis.extraPaths": [
"__pypackages__/3.8/lib",
"__pypackages__/3.9/lib",
"__pypackages__/3.10/lib",
"__pypackages__/3.11/lib",
"__pypackages__/3.12/lib"
],
"black-formatter.args": [
"--config=config/black.toml"
],
"mypy-type-checker.args": [
"--config-file=config/mypy.ini"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": [
"--config-file=config/pytest.ini"
],
"ruff.format.args": [
"--config=config/ruff.toml"
],
"ruff.lint.args": [
"--config=config/ruff.toml"
],
"yaml.schemas": {
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
},
"yaml.customTags": [
"!ENV scalar",
"!ENV sequence",
"!relative scalar",
"tag:yaml.org,2002:python/name:materialx.emoji.to_svg",
"tag:yaml.org,2002:python/name:materialx.emoji.twemoji",
"tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format"
]
} mkdocstrings-python-handlers-1.8.0/config/vscode/tasks.json 0000664 0000000 0000000 00000004426 14547017602 0024130 0 ustar 00root root 0000000 0000000 {
"version": "2.0.0",
"tasks": [
{
"label": "changelog",
"type": "shell",
"command": "pdm run duty changelog"
},
{
"label": "check",
"type": "shell",
"command": "pdm run duty check"
},
{
"label": "check-quality",
"type": "shell",
"command": "pdm run duty check-quality"
},
{
"label": "check-types",
"type": "shell",
"command": "pdm run duty check-types"
},
{
"label": "check-docs",
"type": "shell",
"command": "pdm run duty check-docs"
},
{
"label": "check-dependencies",
"type": "shell",
"command": "pdm run duty check-dependencies"
},
{
"label": "check-api",
"type": "shell",
"command": "pdm run duty check-api"
},
{
"label": "clean",
"type": "shell",
"command": "pdm run duty clean"
},
{
"label": "docs",
"type": "shell",
"command": "pdm run duty docs"
},
{
"label": "docs-deploy",
"type": "shell",
"command": "pdm run duty docs-deploy"
},
{
"label": "format",
"type": "shell",
"command": "pdm run duty format"
},
{
"label": "lock",
"type": "shell",
"command": "pdm lock -G:all"
},
{
"label": "release",
"type": "shell",
"command": "pdm run duty release ${input:version}"
},
{
"label": "setup",
"type": "shell",
"command": "bash scripts/setup.sh"
},
{
"label": "test",
"type": "shell",
"command": "pdm run duty test coverage",
"group": "test"
},
{
"label": "vscode",
"type": "shell",
"command": "pdm run duty vscode"
}
],
"inputs": [
{
"id": "version",
"type": "promptString",
"description": "Version"
}
]
} mkdocstrings-python-handlers-1.8.0/docs/ 0000775 0000000 0000000 00000000000 14547017602 0020302 5 ustar 00root root 0000000 0000000 mkdocstrings-python-handlers-1.8.0/docs/.glossary.md 0000664 0000000 0000000 00000001525 14547017602 0022550 0 ustar 00root root 0000000 0000000 [__all__]: https://docs.python.org/3/tutorial/modules.html#importing-from-a-package
[class template]: https://github.com/mkdocstrings/python/blob/master/src/mkdocstrings_handlers/python/templates/material/_base/class.html
[function template]: https://github.com/mkdocstrings/python/blob/master/src/mkdocstrings_handlers/python/templates/material/_base/function.html
[autodoc syntax]: https://mkdocstrings.github.io/usage/#autodoc-syntax
[autopages recipe]: https://mkdocstrings.github.io/recipes/#automatic-code-reference-pages
[Griffe]: https://github.com/mkdocstrings/griffe
[ReadTheDocs Sphinx theme]: https://sphinx-rtd-theme.readthedocs.io/en/stable/index.html
[Spacy's documentation]: https://spacy.io/api/doc/
[Black]: https://pypi.org/project/black/
[Material for MkDocs]: https://squidfunk.github.io/mkdocs-material
*[ToC]: Table of Contents
mkdocstrings-python-handlers-1.8.0/docs/.overrides/ 0000775 0000000 0000000 00000000000 14547017602 0022362 5 ustar 00root root 0000000 0000000 mkdocstrings-python-handlers-1.8.0/docs/.overrides/main.html 0000664 0000000 0000000 00000001047 14547017602 0024176 0 ustar 00root root 0000000 0000000 {% extends "base.html" %}
{% block announce %}
Sponsorship
is now available!
{% include ".icons/octicons/heart-fill-16.svg" %}
—
For updates follow @pawamoy on
{% include ".icons/fontawesome/brands/mastodon.svg" %}
Fosstodon
{% endblock %}
mkdocstrings-python-handlers-1.8.0/docs/changelog.md 0000664 0000000 0000000 00000000026 14547017602 0022551 0 ustar 00root root 0000000 0000000 --8<-- "CHANGELOG.md"
mkdocstrings-python-handlers-1.8.0/docs/code_of_conduct.md 0000664 0000000 0000000 00000000034 14547017602 0023736 0 ustar 00root root 0000000 0000000 --8<-- "CODE_OF_CONDUCT.md"
mkdocstrings-python-handlers-1.8.0/docs/contributing.md 0000664 0000000 0000000 00000000031 14547017602 0023325 0 ustar 00root root 0000000 0000000 --8<-- "CONTRIBUTING.md"
mkdocstrings-python-handlers-1.8.0/docs/credits.md 0000664 0000000 0000000 00000000201 14547017602 0022252 0 ustar 00root root 0000000 0000000 ---
hide:
- toc
---
```python exec="yes"
--8<-- "scripts/gen_credits.py"
```
mkdocstrings-python-handlers-1.8.0/docs/css/ 0000775 0000000 0000000 00000000000 14547017602 0021072 5 ustar 00root root 0000000 0000000 mkdocstrings-python-handlers-1.8.0/docs/css/insiders.css 0000664 0000000 0000000 00000003731 14547017602 0023430 0 ustar 00root root 0000000 0000000 @keyframes heart {
0%,
40%,
80%,
100% {
transform: scale(1);
}
20%,
60% {
transform: scale(1.15);
}
}
@keyframes vibrate {
0%, 2%, 4%, 6%, 8%, 10%, 12%, 14%, 16%, 18% {
-webkit-transform: translate3d(-2px, 0, 0);
transform: translate3d(-2px, 0, 0);
}
1%, 3%, 5%, 7%, 9%, 11%, 13%, 15%, 17%, 19% {
-webkit-transform: translate3d(2px, 0, 0);
transform: translate3d(2px, 0, 0);
}
20%, 100% {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
}
.heart {
color: #e91e63;
}
.pulse {
animation: heart 1000ms infinite;
}
.vibrate {
animation: vibrate 2000ms infinite;
}
.new-feature svg {
fill: var(--md-accent-fg-color) !important;
}
a.insiders {
color: #e91e63;
}
.sponsorship-list {
width: 100%;
}
.sponsorship-item {
border-radius: 100%;
display: inline-block;
height: 1.6rem;
margin: 0.1rem;
overflow: hidden;
width: 1.6rem;
}
.sponsorship-item:focus, .sponsorship-item:hover {
transform: scale(1.1);
}
.sponsorship-item img {
filter: grayscale(100%) opacity(75%);
height: auto;
width: 100%;
}
.sponsorship-item:focus img, .sponsorship-item:hover img {
filter: grayscale(0);
}
.sponsorship-item.private {
background: var(--md-default-fg-color--lightest);
color: var(--md-default-fg-color);
font-size: .6rem;
font-weight: 700;
line-height: 1.6rem;
text-align: center;
}
.mastodon {
color: #897ff8;
border-radius: 100%;
box-shadow: inset 0 0 0 .05rem currentcolor;
display: inline-block;
height: 1.2rem !important;
padding: .25rem;
transition: all .25s;
vertical-align: bottom !important;
width: 1.2rem;
}
.premium-sponsors {
text-align: center;
}
#silver-sponsors img {
height: 140px;
}
#bronze-sponsors img {
height: 140px;
}
#bronze-sponsors p {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
#bronze-sponsors a {
display: block;
flex-shrink: 0;
}
.sponsors-total {
font-weight: bold;
} mkdocstrings-python-handlers-1.8.0/docs/css/material.css 0000664 0000000 0000000 00000002675 14547017602 0023414 0 ustar 00root root 0000000 0000000 /* More space at the bottom of the page. */
.md-main__inner {
margin-bottom: 1.5rem;
}
/* Custom admonition: preview */
:root {
--md-admonition-icon--preview: url('data:image/svg+xml;charset=utf-8,');
}
.md-typeset .admonition.preview,
.md-typeset details.preview {
border-color: rgb(220, 139, 240);
}
.md-typeset .preview>.admonition-title,
.md-typeset .preview>summary {
background-color: rgba(142, 43, 155, 0.1);
}
.md-typeset .preview>.admonition-title::before,
.md-typeset .preview>summary::before {
background-color: rgb(220, 139, 240);
-webkit-mask-image: var(--md-admonition-icon--preview);
mask-image: var(--md-admonition-icon--preview);
} mkdocstrings-python-handlers-1.8.0/docs/css/mkdocstrings.css 0000664 0000000 0000000 00000002117 14547017602 0024314 0 ustar 00root root 0000000 0000000 /* Indentation. */
div.doc-contents:not(.first) {
padding-left: 25px;
border-left: .05rem solid var(--md-typeset-table-color);
}
/* Mark external links as such. */
a.external::after,
a.autorefs-external::after {
/* https://primer.style/octicons/arrow-up-right-24 */
mask-image: url('data:image/svg+xml,');
-webkit-mask-image: url('data:image/svg+xml,');
content: ' ';
display: inline-block;
vertical-align: middle;
position: relative;
height: 1em;
width: 1em;
background-color: var(--md-typeset-a-color);
}
a.external:hover::after,
a.autorefs-external:hover::after {
background-color: var(--md-accent-fg-color);
} mkdocstrings-python-handlers-1.8.0/docs/index.md 0000664 0000000 0000000 00000000023 14547017602 0021726 0 ustar 00root root 0000000 0000000 --8<-- "README.md"
mkdocstrings-python-handlers-1.8.0/docs/insiders/ 0000775 0000000 0000000 00000000000 14547017602 0022122 5 ustar 00root root 0000000 0000000 mkdocstrings-python-handlers-1.8.0/docs/insiders/changelog.md 0000664 0000000 0000000 00000003206 14547017602 0024374 0 ustar 00root root 0000000 0000000 # Changelog
## mkdocstrings-python Insiders
### 1.5.1 September 12, 2023 { id="1.5.1" }
- Prevent empty auto-summarized Methods section.
### 1.5.0 September 05, 2023 { id="1.5.0" }
- Render function signature overloads.
### 1.4.0 August 27, 2023 { id="1.4.0" }
- Render cross-references in attribute signatures.
### 1.3.0 August 24, 2023 { id="1.3.0" }
- Add "method" symbol type.
### 1.2.0 August 20, 2023 { id="1.2.0" }
- Add [member auto-summaries](../usage/configuration/members.md#summary).
### 1.1.4 July 17, 2023 { id="1.1.4" }
- Fix heading level increment for class members.
### 1.1.3 July 17, 2023 { id="1.1.3" }
- Fix heading level (avoid with clause preventing to decrease it).
### 1.1.2 July 15, 2023 { id="1.1.2" }
- Use non-breaking spaces after symbol types.
### 1.1.1 June 27, 2023 { id="1.1.1" }
- Correctly escape expressions in signatures and other rendered types.
### 1.1.0 June 4, 2023 { id="1.1.0" }
- Add [Symbol types in headings and table of contents](../usage/configuration/headings.md#show_symbol_type_toc).
### 1.0.0 May 10, 2023 { id="1.0.0" }
- Add [cross-references for type annotations in signatures](../usage/configuration/signatures.md#signature_crossrefs).
Make sure to update your local templates as the signature of the
[`format_signature` filter][mkdocstrings_handlers.python.rendering.do_format_signature]
has changed. The templates that must be updated:
`class.html`, `expression.html`, `function.html` and `signature.html`.
mkdocstrings-python-handlers-1.8.0/docs/insiders/goals.yml 0000664 0000000 0000000 00000001151 14547017602 0023750 0 ustar 00root root 0000000 0000000 goals:
500:
name: PlasmaVac User Guide
features:
- name: Cross-references for type annotations in signatures
ref: /usage/configuration/signatures/#signature_crossrefs
since: 2023/05/10
- name: Symbol types in headings and table of contents
ref: /usage/configuration/headings/#show_symbol_type_toc
since: 2023/06/04
1000:
name: GraviFridge User Manual
features:
- name: Auto-summary of object members
ref: /usage/configuration/members/#summary
since: 2023/08/20
- name: Automatic rendering of function signature overloads
since: 2023/09/05
mkdocstrings-python-handlers-1.8.0/docs/insiders/index.md 0000664 0000000 0000000 00000022713 14547017602 0023560 0 ustar 00root root 0000000 0000000 # Insiders
*mkdocstrings-python* follows the **sponsorware** release strategy, which means
that new features are first exclusively released to sponsors as part of
[Insiders][insiders]. Read on to learn [what sponsorships achieve][sponsorship],
[how to become a sponsor][sponsors] to get access to Insiders,
and [what's in it for you][features]!
## What is Insiders?
*mkdocstrings-python Insiders* is a private fork of *mkdocstrings-python*, hosted as
a private GitHub repository. Almost[^1] [all new features][features]
are developed as part of this fork, which means that they are immediately
available to all eligible sponsors, as they are made collaborators of this
repository.
[^1]:
In general, every new feature is first exclusively released to sponsors, but
sometimes upstream dependencies enhance
existing features that must be supported by *mkdocstrings-python*.
Every feature is tied to a [funding goal][funding] in monthly subscriptions. When a
funding goal is hit, the features that are tied to it are merged back into
*mkdocstrings-python* and released for general availability, making them available
to all users. Bugfixes are always released in tandem.
Sponsorships start as low as [**$10 a month**][sponsors].[^2]
[^2]:
Note that $10 a month is the minimum amount to become eligible for
Insiders. While GitHub Sponsors also allows to sponsor lower amounts or
one-time amounts, those can't be granted access to Insiders due to
technical reasons. Such contributions are still very much welcome as
they help ensuring the project's sustainability.
## What sponsorships achieve
Sponsorships make this project sustainable, as they buy the maintainers of this
project time – a very scarce resource – which is spent on the development of new
features, bug fixing, stability improvement, issue triage and general support.
The biggest bottleneck in Open Source is time.[^3]
[^3]:
Making an Open Source project sustainable is exceptionally hard: maintainers
burn out, projects are abandoned. That's not great and very unpredictable.
The sponsorware model ensures that if you decide to use *mkdocstrings-python*,
you can be sure that bugs are fixed quickly and new features are added
regularly.
If you're unsure if you should sponsor this project, check out the list of
[completed funding goals][goals completed] to learn whether you're already using features that
were developed with the help of sponsorships.
## What's in it for me?
```python exec="1" session="insiders"
data_source = [
"docs/insiders/goals.yml",
("griffe-inherited-docstrings", "https://mkdocstrings.github.io/griffe-inherited-docstrings/", "insiders/goals.yml"),
("griffe-pydantic", "https://mkdocstrings.github.io/griffe-pydantic/", "insiders/goals.yml"),
("griffe-typing-deprecated", "https://mkdocstrings.github.io/griffe-typing-deprecated/", "insiders/goals.yml"),
]
```
```python exec="1" session="insiders"
--8<-- "scripts/insiders.py"
print(
f"""The moment you become a sponsor, you'll get **immediate
access to {len(unreleased_features)} additional features** that you can start using right away, and
which are currently exclusively available to sponsors:\n"""
)
for feature in unreleased_features:
feature.render(badge=True)
```
## How to become a sponsor
Thanks for your interest in sponsoring! In order to become an eligible sponsor
with your GitHub account, visit [pawamoy's sponsor profile][github sponsor profile],
and complete a sponsorship of **$10 a month or more**.
You can use your individual or organization GitHub account for sponsoring.
**Important**: If you're sponsoring **[@pawamoy][github sponsor profile]**
through a GitHub organization, please send a short email
to pawamoy@pm.me with the name of your
organization and the GitHub account of the individual
that should be added as a collaborator.[^4]
You can cancel your sponsorship anytime.[^5]
[^4]:
It's currently not possible to grant access to each member of an
organization, as GitHub only allows for adding users. Thus, after
sponsoring, please send an email to pawamoy@pm.me, stating which
account should become a collaborator of the Insiders repository. We're
working on a solution which will make access to organizations much simpler.
To ensure that access is not tied to a particular individual GitHub account,
create a bot account (i.e. a GitHub account that is not tied to a specific
individual), and use this account for the sponsoring. After being added to
the list of collaborators, the bot account can create a private fork of the
private Insiders GitHub repository, and grant access to all members of the
organizations.
[^5]:
If you cancel your sponsorship, GitHub schedules a cancellation request
which will become effective at the end of the billing cycle. This means
that even though you cancel your sponsorship, you will keep your access to
Insiders as long as your cancellation isn't effective. All charges are
processed by GitHub through Stripe. As we don't receive any information
regarding your payment, and GitHub doesn't offer refunds, sponsorships are
non-refundable.
[:octicons-heart-fill-24:{ .pulse } Join our awesome sponsors](https://github.com/sponsors/pawamoy){ .md-button .md-button--primary }
If you sponsor publicly, you're automatically added here with a link to
your profile and avatar to show your support for *mkdocstrings-python*.
Alternatively, if you wish to keep your sponsorship private, you'll be a
silent +1. You can select visibility during checkout and change it
afterwards.
## Funding
### Goals
The following section lists all funding goals. Each goal contains a list of
features prefixed with a checkmark symbol, denoting whether a feature is
:octicons-check-circle-fill-24:{ style="color: #00e676" } already available or
:octicons-check-circle-fill-24:{ style="color: var(--md-default-fg-color--lightest)" } planned,
but not yet implemented. When the funding goal is hit,
the features are released for general availability.
```python exec="1" session="insiders" idprefix=""
for goal in goals.values():
if not goal.complete:
goal.render()
```
### Goals completed
This section lists all funding goals that were previously completed, which means
that those features were part of Insiders, but are now generally available and
can be used by all users.
```python exec="1" session="insiders"
for goal in goals.values():
if goal.complete:
goal.render()
```
## Frequently asked questions
### Compatibility
> We're building an open source project and want to allow outside collaborators
to use *mkdocstrings-python* locally without having access to Insiders.
Is this still possible?
Yes. Insiders is compatible with *mkdocstrings-python*. Almost all new features
and configuration options are either backward-compatible or implemented behind
feature flags. Most Insiders features enhance the overall experience,
though while these features add value for the users of your project, they
shouldn't be necessary for previewing when making changes to content.
### Payment
> We don't want to pay for sponsorship every month. Are there any other options?
Yes. You can sponsor on a yearly basis by [switching your GitHub account to a
yearly billing cycle][billing cycle]. If for some reason you cannot do that, you
could also create a dedicated GitHub account with a yearly billing cycle, which
you only use for sponsoring (some sponsors already do that).
If you have any problems or further questions, please reach out to pawamoy@pm.me.
### Terms
> Are we allowed to use Insiders under the same terms and conditions as
*mkdocstrings-python*?
Yes. Whether you're an individual or a company, you may use *mkdocstrings-python
Insiders* precisely under the same terms as *mkdocstrings-python*, which are given
by the [ISC License][license]. However, we kindly ask you to respect our
**fair use policy**:
- Please **don't distribute the source code** of Insiders. You may freely use
it for public, private or commercial projects, privately fork or mirror it,
but please don't make the source code public, as it would counteract the
sponsorware strategy.
- If you cancel your subscription, you're automatically removed as a
collaborator and will miss out on all future updates of Insiders. However, you
may **use the latest version** that's available to you **as long as you like**.
Just remember that [GitHub deletes private forks][private forks].
[insiders]: #what-is-insiders
[sponsorship]: #what-sponsorships-achieve
[sponsors]: #how-to-become-a-sponsor
[features]: #whats-in-it-for-me
[funding]: #funding
[goals completed]: #goals-completed
[github sponsor profile]: https://github.com/sponsors/pawamoy
[billing cycle]: https://docs.github.com/en/github/setting-up-and-managing-billing-and-payments-on-github/changing-the-duration-of-your-billing-cycle
[license]: ../license.md
[private forks]: https://docs.github.com/en/github/setting-up-and-managing-your-github-user-account/removing-a-collaborator-from-a-personal-repository
mkdocstrings-python-handlers-1.8.0/docs/insiders/installation.md 0000664 0000000 0000000 00000015621 14547017602 0025152 0 ustar 00root root 0000000 0000000 ---
title: Getting started with Insiders
---
# Getting started with Insiders
*mkdocstrings-python Insiders* is a compatible drop-in replacement for *mkdocstrings-python*,
and can be installed similarly using `pip` or `git`.
Note that in order to access the Insiders repository,
you need to [become an eligible sponsor] of @pawamoy on GitHub.
[become an eligible sponsor]: index.md#how-to-become-a-sponsor
## Installation
### with PyPI Insiders
[PyPI Insiders](https://pawamoy.github.io/pypi-insiders/)
is a tool that helps you keep up-to-date versions
of Insiders projects in the PyPI index of your choice
(self-hosted, Google registry, Artifactory, etc.).
See [how to install it](https://pawamoy.github.io/pypi-insiders/#installation)
and [how to use it](https://pawamoy.github.io/pypi-insiders/#usage).
### with pip (ssh/https)
*mkdocstrings-python Insiders* can be installed with `pip` [using SSH][using ssh]:
```bash
pip install git+ssh://git@github.com/pawamoy-insiders/mkdocstrings-python.git
```
[using ssh]: https://docs.github.com/en/authentication/connecting-to-github-with-ssh
Or using HTTPS:
```bash
pip install git+https://${GH_TOKEN}@github.com/pawamoy-insiders/mkdocstrings-python.git
```
>? NOTE: **How to get a GitHub personal access token**
> The `GH_TOKEN` environment variable is a GitHub token.
> It can be obtained by creating a [personal access token] for
> your GitHub account. It will give you access to the Insiders repository,
> programmatically, from the command line or GitHub Actions workflows:
>
> 1. Go to https://github.com/settings/tokens
> 2. Click on [Generate a new token]
> 3. Enter a name and select the [`repo`][scopes] scope
> 4. Generate the token and store it in a safe place
>
> [personal access token]: https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token
> [Generate a new token]: https://github.com/settings/tokens/new
> [scopes]: https://docs.github.com/en/developers/apps/scopes-for-oauth-apps#available-scopes
>
> Note that the personal access
> token must be kept secret at all times, as it allows the owner to access your
> private repositories.
### with pip (self-hosted)
Self-hosting the Insiders package makes it possible to depend on *mkdocstrings-python* normally,
while transparently downloading and installing the Insiders version locally.
It means that you can specify your dependencies normally, and your contributors without access
to Insiders will get the public version, while you get the Insiders version on your machine.
WARNING: **Limitation**
With this method, there is no way to force the installation of an Insiders version
rather than a public version. If there is a public version that is more recent
than your self-hosted Insiders version, the public version will take precedence.
Remember to regularly update your self-hosted versions by uploading latest distributions.
You can build the distributions for Insiders yourself, by cloning the repository
and using [build] to build the distributions,
or you can download them from our [GitHub Releases].
You can upload these distributions to a private PyPI-like registry
([Artifactory], [Google Cloud], [pypiserver], etc.)
with [Twine]:
[build]: https://pypi.org/project/build/
[Artifactory]: https://jfrog.com/help/r/jfrog-artifactory-documentation/pypi-repositories
[Google Cloud]: https://cloud.google.com/artifact-registry/docs/python
[pypiserver]: https://pypi.org/project/pypiserver/
[Github Releases]: https://github.com/pawamoy-insiders/mkdocstrings-python/releases
[Twine]: https://pypi.org/project/twine/
```bash
# download distributions in ~/dists, then upload with:
twine upload --repository-url https://your-private-index.com ~/dists/*
```
You might also need to provide a username and password/token to authenticate against the registry.
Please check [Twine's documentation][twine docs].
[twine docs]: https://twine.readthedocs.io/en/stable/
You can then configure pip (or other tools) to look for packages into your package index.
For example, with pip:
```bash
pip config set global.extra-index-url https://your-private-index.com/simple
```
Note that the URL might differ depending on whether your are uploading a package (with Twine)
or installing a package (with pip), and depending on the registry you are using (Artifactory, Google Cloud, etc.).
Please check the documentation of your registry to learn how to configure your environment.
**We kindly ask that you do not upload the distributions to public registries,
as it is against our [Terms of use](index.md#terms).**
>? TIP: **Full example with `pypiserver`**
> In this example we use [pypiserver] to serve a local PyPI index.
>
> ```bash
> pip install --user pypiserver
> # or pipx install pypiserver
>
> # create a packages directory
> mkdir -p ~/.local/pypiserver/packages
>
> # run the pypi server without authentication
> pypi-server run -p 8080 -a . -P . ~/.local/pypiserver/packages &
> ```
>
> We can configure the credentials to access the server in [`~/.pypirc`][pypirc]:
>
> [pypirc]: https://packaging.python.org/en/latest/specifications/pypirc/
>
> ```ini title=".pypirc"
> [distutils]
> index-servers =
> local
>
> [local]
> repository: http://localhost:8080
> username:
> password:
> ```
>
> We then clone the Insiders repository, build distributions and upload them to our local server:
>
> ```bash
> # clone the repository
> git clone git@github.com:pawamoy-insiders/mkdocstrings-python
> cd python
>
> # install build
> pip install --user build
> # or pipx install build
>
> # checkout latest tag
> git checkout $(git describe --tags --abbrev=0)
>
> # build the distributions
> pyproject-build
>
> # upload them to our local server
> twine upload -r local dist/* --skip-existing
> ```
>
> Finally, we configure pip, and for example [PDM][pdm], to use our local index to find packages:
>
> ```bash
> pip config set global.extra-index-url http://localhost:8080/simple
> pdm config pypi.extra.url http://localhost:8080/simple
> ```
>
> [pdm]: https://pdm.fming.dev/latest/
>
> Now when running `pip install mkdocstrings-python`,
> or resolving dependencies with PDM,
> both tools will look into our local index and find the Insiders version.
> **Remember to update your local index regularly!**
### with git
Of course, you can use *mkdocstrings-python Insiders* directly from `git`:
```
git clone git@github.com:pawamoy-insiders/mkdocstrings-python
```
When cloning from `git`, the package must be installed:
```
pip install -e python
```
## Upgrading
When upgrading Insiders, you should always check the version of *mkdocstrings-python*
which makes up the first part of the version qualifier. For example, a version like
`8.x.x.4.x.x` means that Insiders `4.x.x` is currently based on `8.x.x`.
If the major version increased, it's a good idea to consult the [changelog]
and go through the steps to ensure your configuration is up to date and
all necessary changes have been made.
[changelog]: ./changelog.md
mkdocstrings-python-handlers-1.8.0/docs/js/ 0000775 0000000 0000000 00000000000 14547017602 0020716 5 ustar 00root root 0000000 0000000 mkdocstrings-python-handlers-1.8.0/docs/js/insiders.js 0000664 0000000 0000000 00000005062 14547017602 0023077 0 ustar 00root root 0000000 0000000 function humanReadableAmount(amount) {
const strAmount = String(amount);
if (strAmount.length >= 4) {
return `${strAmount.slice(0, strAmount.length - 3)},${strAmount.slice(-3)}`;
}
return strAmount;
}
function getJSON(url, callback) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.responseType = 'json';
xhr.onload = function () {
var status = xhr.status;
if (status === 200) {
callback(null, xhr.response);
} else {
callback(status, xhr.response);
}
};
xhr.send();
}
function updateInsidersPage(author_username) {
const sponsorURL = `https://github.com/sponsors/${author_username}`
const dataURL = `https://raw.githubusercontent.com/${author_username}/sponsors/main`;
getJSON(dataURL + '/numbers.json', function (err, numbers) {
document.getElementById('sponsors-count').innerHTML = numbers.count;
Array.from(document.getElementsByClassName('sponsors-total')).forEach(function (element) {
element.innerHTML = '$ ' + humanReadableAmount(numbers.total);
});
getJSON(dataURL + '/sponsors.json', function (err, sponsors) {
const sponsorsElem = document.getElementById('sponsors');
const privateSponsors = numbers.count - sponsors.length;
sponsors.forEach(function (sponsor) {
sponsorsElem.innerHTML += `
`;
});
if (privateSponsors > 0) {
sponsorsElem.innerHTML += `
+${privateSponsors}
`;
}
});
});
getJSON(dataURL + '/sponsorsBronze.json', function (err, sponsors) {
const bronzeSponsors = document.getElementById("bronze-sponsors");
if (sponsors) {
let html = '';
html += 'Bronze sponsors
'
sponsors.forEach(function (sponsor) {
html += `
`
});
html += '