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.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.1.tar.gz.

File metadata

File hashes

Hashes for griffe_inherited_method_crossrefs-0.0.1.1.tar.gz
Algorithm Hash digest
SHA256 43ee8038fc155019eff44ec593d6f28bab77024b01b9beadefd13ca4f50cd51a
MD5 e609f97b0b70ac89198f15c8ad552462
BLAKE2b-256 29bf1ac9ee757c32511e4ae927c30ec97371548ef9dc75149ad08771c4175171

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for griffe_inherited_method_crossrefs-0.0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0a151e4ca7f3fff65ca7e84b68d44d221c7294d3adf7a3ed0042e37cdc937773
MD5 4c137621666789270ffef8fbc0b903e5
BLAKE2b-256 d68c426e8b957bf1eaa35e3e82d82aae3dc4e0165d1bb6f1e628c4f54b19903c

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