Defines a docutils directive for inserting inheritance diagrams.
Provide the directive with one or more classes or modules (separated by whitespace). For modules, all of the classes in that module will be used.
Example:
Given the following classes: class A: pass class B(A): pass class C(A): pass class D(B, C): pass class E(B): pass .. inheritance-diagram: D E Produces a graph like the following: A / \ B C / \ / E D
The graph is inserted as a PNG+image map into HTML and a PDF in LaTeX.
Unknown Field: copyright | |
Copyright 2007-2022 by the Sphinx team, see AUTHORS. | |
Unknown Field: license | |
BSD, see LICENSE for details. |
Variable | module_sig_re |
Undocumented |
Variable | py_builtins |
Undocumented |
Class | inheritance_diagram |
A docutils node to use as a placeholder for the inheritance diagram. |
Class | InheritanceDiagram |
Run when the inheritance_diagram directive is first encountered. |
Class | InheritanceException |
Undocumented |
Class | InheritanceGraph |
Given a list of classes, determines the set of classes that they inherit from all the way to the root "object", and then is able to generate a graphviz dot graph from them. |
Function | get_graph_hash |
Undocumented |
Function | html_visit_inheritance_diagram |
Output the graph for HTML. This will insert a PNG with clickable image map. |
Function | import_classes |
Import a class using its fully-qualified name. |
Function | latex_visit_inheritance_diagram |
Output the graph for LaTeX. This will insert a PDF. |
Function | setup |
Undocumented |
Function | skip |
Undocumented |
Function | texinfo_visit_inheritance_diagram |
Output the graph for Texinfo. This will insert a PNG. |
Function | try_import |
Import a object or module using name and currentmodule. name should be a relative name from currentmodule or a fully-qualified name. |
Undocumented
Parameters | |
node:inheritance_diagram | Undocumented |
Returns | |
str | Undocumented |
Parameters | |
node:inheritance_diagram | Undocumented |
Parameters | |
name:str | Undocumented |
currmodule:str | Undocumented |
Returns | |
Any | Undocumented |
Parameters | |
node:inheritance_diagram | Undocumented |
Parameters | |
node:inheritance_diagram | Undocumented |