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
Close
Hashes for griffe_inherited_method_crossrefs-0.0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf488f11c1f569abffdebdaa865a01e71ef8e57dda045322b672b82db5421e80 |
|
MD5 | 1e4ce4167a3f7e864f3bc2ef9a76d220 |
|
BLAKE2b-256 | 909374e2a445176bc71584e69458a0bdfb1dea9d3de0a6340839590f0956ba7f |
Close
Hashes for griffe_inherited_method_crossrefs-0.0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | def4567780fb311922b8e3869c9305b957f04a633b0eed0f5959b66661556bf2 |
|
MD5 | c38c889f6be4fb1ac1c14108fc6d64f0 |
|
BLAKE2b-256 | 109296a1761ad16eff2b91f8bc520bc7b66eb42e3e08410bcd7f86e484aa5a21 |