Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add option include-subclasses to inheritance-diagram. #8159

Merged

Conversation

doerwalter
Copy link
Contributor

@doerwalter doerwalter commented Aug 28, 2020

This patch adds the following new feature to sphinx: inheritance-diagram gains a new option :include-subclasses:.

When this option is given, not only the classes listed as arguments to inheritance-diagram are included in the diagram, but all sub classes (and their sub classes etc.) as well.

This makes it possible to generate a complete inheritance tree by just listing the base class and adding :include-subclasses:.

This is different from specifying the module that contains this base class, as this module might include other classes that should not be part of the diagram.

Closes #8191

@AA-Turner AA-Turner added this to the some future version milestone Apr 29, 2023
@AA-Turner AA-Turner added the extensions:graphviz The `sphinx.ext.graphviz` or `sphinx.ext.inheritance_diagram` extensions label Jan 29, 2025
@AA-Turner AA-Turner merged commit 50fb4a9 into sphinx-doc:master Feb 2, 2025
23 checks passed
@AA-Turner AA-Turner modified the milestones: some future version, 8.2.0 Feb 2, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2025
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
extensions:graphviz The `sphinx.ext.graphviz` or `sphinx.ext.inheritance_diagram` extensions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option include-subclasses to inheritance-diagram
2 participants