I have a python package where there is a parent class (let’s call it ParentClass
) from which many other classes inherit. I want to create documentation using mkdocs and mkdocstrings, specifically for those classes that inherit from ParentClass
. The file structure is roughly as follows:
- my_package.features.childclass1.ChildClass1, my_package.features.childclass2.ChildClass2, etc
- my_package.features.mixins.ParentClass
However, the features folder also contains subfolders with classes that do not inherit from ParentClass
Is there a way to let mkdocstrings automatically render documentation only from those classes that inherit from ParentClass
?