问题
I'm trying to automatically build the class inheritance tree of the raytracing
module (available on pip) with automodapi
extension for sphinx
, however, there is one class I would like to omit. The automodapi allows the creation of the tree with the command .. automod-diagram:: moduleName
and in the doc there seem to be a skip method, but it only skips in the documentation generation, as I want to skip an object in the class diagram. The name of the class I want to omit is Materials
.
To reproduce,
pip install raytracing
- Open module as project.
- in
/docs
, open theindex.rst
file - add
.. automod-diagram:: raytracing :parts: 1
- in the terminal, reach the
/docs
location and launch commandmake html
. - Install the dependencies as needed.
- Look at the generated class diagram.
Is there a way to omit one of the class from this extension? How should I proceed?
来源:https://stackoverflow.com/questions/62187002/skip-an-object-in-class-inheritance-diagram-with-sphinx-automodapi