diff options
| author | georg.brandl <devnull@localhost> | 2008-11-02 20:04:24 +0000 |
|---|---|---|
| committer | georg.brandl <devnull@localhost> | 2008-11-02 20:04:24 +0000 |
| commit | 0a014b76a90a61cf31d2ad7e0749e26ac229558e (patch) | |
| tree | 31b9b6d0a9102b930b584e1909ffcd2787f31197 /doc/ext/autodoc.rst | |
| parent | b688459b6383747b634f49a807bf7adebba8e560 (diff) | |
| download | sphinx-0a014b76a90a61cf31d2ad7e0749e26ac229558e.tar.gz | |
Allow skipping members by event.
Diffstat (limited to 'doc/ext/autodoc.rst')
| -rw-r--r-- | doc/ext/autodoc.rst | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/ext/autodoc.rst b/doc/ext/autodoc.rst index e1229521..993f971a 100644 --- a/doc/ext/autodoc.rst +++ b/doc/ext/autodoc.rst @@ -240,3 +240,31 @@ needed docstring processing in event :event:`autodoc-process-docstring`: .. autofunction:: cut_lines .. autofunction:: between + + +Skipping members +---------------- + +autodoc allows the user to define a custom method for determining whether a +member should be included in the documentation by using the following event: + +.. event:: autodoc-skip-member (app, what, name, obj, skip, options) + + .. versionadded:: 0.5 + + Emitted when autodoc has to decide whether a member should be included in the + documentation. The member is excluded if a handler returns ``True``. It is + included if the handler returns ``False``. + + :param app: the Sphinx application object + :param what: the type of the object which the docstring belongs to (one of + ``"module"``, ``"class"``, ``"exception"``, ``"function"``, ``"method"``, + ``"attribute"``) + :param name: the fully qualified name of the object + :param obj: the object itself + :param skip: a boolean indicating if autodoc will skip this member if the user + handler does not override the decision + :param options: the options given to the directive: an object with attributes + ``inherited_members``, ``undoc_members``, ``show_inheritance`` and + ``noindex`` that are true if the flag option of same name was given to the + auto directive |
