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.3.tar.gz (7.6 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.3.tar.gz.

File metadata

File hashes

Hashes for griffe_inherited_method_crossrefs-0.0.1.3.tar.gz
Algorithm Hash digest
SHA256 5eb7b9ef456279f14b85111653fb1881b2f60210992f472de0937c3744f1b504
MD5 3e29e0322605c461f9f7b733ac150dc4
BLAKE2b-256 6d9ab49369163f7d7e8f9ebc50bb447610714984f4248773fc3e9d29b7d4da15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for griffe_inherited_method_crossrefs-0.0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4c85675fa62eb7992f50a49159d642de5543c2149b607c4d39a9558b7362640b
MD5 ebae58dd07b9647be5a226ffa5b59dc0
BLAKE2b-256 77ab66952521365e24324e9854fc66cd779c7ffa1afbd3184edc104f3a86c31f

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