Skip to main content

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

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

griffe_inherited_method_crossrefs-0.0.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file griffe_inherited_method_crossrefs-0.0.1.tar.gz.

File metadata

File hashes

Hashes for griffe_inherited_method_crossrefs-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cd31660371ca16d11ebb683a6fd1d4f5c60765993cda38cac31fa2b798a7f2b9
MD5 491232b6c41323bfdab36faa2f57d5c6
BLAKE2b-256 a9916ff2292d9916b084577098c0844b261cddcb47db0ba8f849cfa71c8328fb

See more details on using hashes here.

File details

Details for the file griffe_inherited_method_crossrefs-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for griffe_inherited_method_crossrefs-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f529ec314149ff4e541e3d834a19634c80e8a4985d7ffde8898315fcb6483ac2
MD5 7da3fec9ab661155a4f9a01da5bcb776
BLAKE2b-256 3aea293536bd7a8028bd7a87c267559667d137b8157e1c1194a69b80b499d5d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page