Skip to content

Griffe extension to replace docstrings of inherited methods with cross-references to parent

License

Notifications You must be signed in to change notification settings

mlprt/griffe-inherited-method-crossrefs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Griffe extension to replace docstrings of inherited methods with cross-references to parent

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages