So I've been trying to get Sphinx to generate inheritance diagrams for all submodules / classes when generating .rst
files through sphinx-apidoc
, similar to this example. But I have not found any built-in features to do this in Sphinx.
The nearest solution I found was to manually add an inheritance diagram line with the class name to each class docstring in code, but this is not very convenient.
So the question is how do I add inheritance diagrams to all module
.rst
files?