I have a module with several classes. Currently I am using ..automodule
to document the module. I'd like each class to have its own header section with the class name. I could achieve this by replacing ..automodule foo
with:
Bar
===
..autoclass foo.Bar
Baz
===
..autoclass foo.Baz
...
However, that would require me to manually list every class in every module I do this for. What is the best way to customize the content generated by automodule?