Clarify docs of automodule options.

This commit is contained in:
Georg Brandl 2009-09-09 18:26:59 +02:00
parent 0899e017a9
commit c3b8e3fdf0

View File

@ -72,21 +72,27 @@ directive.
* If you want to automatically document members, there's a ``members``
option::
.. automodule:: noodle
:members:
will document all module members (recursively), and
.. autoclass:: Noodle
:members:
will document all non-private member functions and properties (that is,
those whose name doesn't start with ``_``), while ::
those whose name doesn't start with ``_``).
You can also give an explicit list of members; only these will then be
documented::
.. autoclass:: Noodle
:members: eat, slurp
will document exactly the specified members.
* Members without docstrings will be left out, unless you give the
``undoc-members`` flag option::
.. autoclass:: Noodle
.. automodule:: noodle
:members:
:undoc-members: