mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #1061, #2336, #3235: Now generation of autosummary doesn't contain imported members by default. Thanks to Luc Saffre.
This commit is contained in:
parent
60ae8437af
commit
938d44e2de
3
CHANGES
3
CHANGES
@ -4,6 +4,9 @@ Release 1.6 (in development)
|
|||||||
Incompatible changes
|
Incompatible changes
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
* #1061, #2336, #3235: Now generation of autosummary doesn't contain imported
|
||||||
|
members by default. Thanks to Luc Saffre.
|
||||||
|
|
||||||
Features added
|
Features added
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
@ -176,7 +176,6 @@ def generate_autosummary_docs(sources, output_dir=None, suffix='.rst',
|
|||||||
documenter = get_documenter(value, obj)
|
documenter = get_documenter(value, obj)
|
||||||
if documenter.objtype == typ:
|
if documenter.objtype == typ:
|
||||||
if imported or getattr(value, '__module__', None) == obj.__name__:
|
if imported or getattr(value, '__module__', None) == obj.__name__:
|
||||||
|
|
||||||
items.append(name)
|
items.append(name)
|
||||||
public = [x for x in items
|
public = [x for x in items
|
||||||
if x in include_public or not x.startswith('_')]
|
if x in include_public or not x.startswith('_')]
|
||||||
|
Loading…
Reference in New Issue
Block a user