Griffe extension to replace docstrings of inherited methods with cross-references to parent
Project description
griffe_inherited_method_crossrefs
Griffe extension to replace docstrings of inherited methods with cross-references to parent
For example, if a class foo.Child inherits the method do_something from bar.Parent, then in the generated documentation, the docstring of Child.do_something will appear similar to
Inherited from bar.Parent
whereas the docstring of bar.Parent.do_something will be unaffected.
Installation
pip install griffe-inherited-method-crossrefs
Usage
After installation, to use this extension with Mkdocs and mkdocstrings, add the following to your mkdocs.yml:
plugins:
- mkdocstrings:
handlers:
python:
options:
extensions:
- griffe_inherited_method_crossrefs
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file griffe_inherited_method_crossrefs-0.0.1.4.tar.gz.
File metadata
- Download URL: griffe_inherited_method_crossrefs-0.0.1.4.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf488f11c1f569abffdebdaa865a01e71ef8e57dda045322b672b82db5421e80
|
|
| MD5 |
1e4ce4167a3f7e864f3bc2ef9a76d220
|
|
| BLAKE2b-256 |
909374e2a445176bc71584e69458a0bdfb1dea9d3de0a6340839590f0956ba7f
|
File details
Details for the file griffe_inherited_method_crossrefs-0.0.1.4-py3-none-any.whl.
File metadata
- Download URL: griffe_inherited_method_crossrefs-0.0.1.4-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
def4567780fb311922b8e3869c9305b957f04a633b0eed0f5959b66661556bf2
|
|
| MD5 |
c38c889f6be4fb1ac1c14108fc6d64f0
|
|
| BLAKE2b-256 |
109296a1761ad16eff2b91f8bc520bc7b66eb42e3e08410bcd7f86e484aa5a21
|