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

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

griffe_inherited_method_crossrefs-0.0.1.2.tar.gz (7.2 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.2.tar.gz.

File metadata

File hashes

Hashes for griffe_inherited_method_crossrefs-0.0.1.2.tar.gz
Algorithm Hash digest
SHA256 8d4d00b8ed7b5632822c85dd42b0526a0dc63cbd571a3048e79ae8c2f8beba14
MD5 3c090f9d155f3cb9513fcb019a30a0d2
BLAKE2b-256 ae0ba66b5662e0de842d1246b39d538cc93357f4bed7e64d4812dd8cae31e4a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for griffe_inherited_method_crossrefs-0.0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7a9aa28af02aebdeeabe898ca6f779956718b74fea303b8444e5eeee4ec1c1a0
MD5 9f0a22c46cafe2eee37f40ae571be834
BLAKE2b-256 2e4714caf45b6235a99ad93515c6b28ab7910971a84956fdb5d025455a8ba5c4

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