Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sphinx -- combining automodule and autoclass

Unless I'm missing something, Sphinx's automodule will only document the members of a module, and not the attributes of classes defined in that module.

Is there a way automatically get the behavior of automodule and autoclass combined in such a way that I can automatically get documentation of a modules members and the attributes of any classes found in that module?

I realize I can script all this, but it gets very messy and verbose very quickly. If anyone has a neat, elegant way of doing this, I'd be happy to hear about that too.

like image 475
Captain Midday Avatar asked Dec 14 '12 01:12

Captain Midday


1 Answers

.. automodule:: whatever
    :members:
like image 151
Markus Unterwaditzer Avatar answered Oct 21 '22 03:10

Markus Unterwaditzer