48
48
49
49
* ``:ignore-emptydoc:`` or ``:no-ignore-emptydoc:``
50
50
The global sphinx configuration option ``automodsumm_ignore_emptydoc``
51
- decides if functions, classes, and class methods with empty
52
- ``__doc__`` attributes are included in the generated documentation. The flags
53
- ``:ignore-emptydoc:`` or ``:no-ignore-emptydoc:`` allows overrriding this
54
- global setting.
51
+ decides if class methods with empty ``__doc__`` attributes are included
52
+ in the generated documentation. The flags ``:ignore-emptydoc:`` or
53
+ ``:no-ignore-emptydoc:`` allows overrriding this global setting.
55
54
56
55
This extension also adds three sphinx configuration options:
57
56
@@ -70,11 +69,10 @@ class members that are inherited from a base class. This value can be
70
69
``False``.
71
70
72
71
* ``automodsumm_ignore_emptydoc``
73
- Should be a bool, and if ``True``, will cause `automodsumm`_ to ignore
74
- functions, classes, and class methods with empty ``__doc__`` attributes.
75
- This value can be overridden for any particular automodsumm directive by including
76
- the ``:ignore-emptydoc:`` or ``:no-ignore-emptydoc:`` options. Defaults to
77
- ``False``.
72
+ Should be a bool, and if ``True``, will cause `automodsumm`_ to ignore class
73
+ methods with empty ``__doc__`` attributes. This value can be overridden for any
74
+ particular automodsumm directive by including the ``:ignore-emptydoc:`` or
75
+ ``:no-ignore-emptydoc:`` options. Defaults to ``False``.
78
76
79
77
.. _sphinx.ext.autosummary: http://sphinx-doc.org/latest/ext/autosummary.html
80
78
.. _autosummary: http://sphinx-doc.org/latest/ext/autosummary.html#directive-autosummary
@@ -577,7 +575,7 @@ def get_members_class(obj, typ, include_public=[],
577
575
continue
578
576
if (
579
577
ignore_emptydoc
580
- and documenter .objtype in ( 'method' , 'class' , 'function' )
578
+ and documenter .objtype == 'method'
581
579
and not getattr (safe_getattr (obj , name ), '__doc__' , '' )
582
580
):
583
581
continue
0 commit comments