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

Built Distribution

Supported by

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