Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJosh Mitchell <yoshanuikabundi@gmail.com>2021-11-09 05:14:39 +0300
committerJosh Mitchell <yoshanuikabundi@gmail.com>2021-11-15 05:16:33 +0300
commitad0071ddb767602588dd472d8c4abd56146859df (patch)
tree894b4bc13a3cc388d07086e160d4c5874da7f3e0 /doc
parentcee86909b9f4ca338bc41168e91226de520369c6 (diff)
#2021: Allow autosummary to respect __all__
Diffstat (limited to 'doc')
-rw-r--r--doc/usage/extensions/autosummary.rst19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/usage/extensions/autosummary.rst b/doc/usage/extensions/autosummary.rst
index 9533ed109..6ce292a98 100644
--- a/doc/usage/extensions/autosummary.rst
+++ b/doc/usage/extensions/autosummary.rst
@@ -201,6 +201,25 @@ also use these config values:
.. versionadded:: 2.1
+ .. versionchanged:: 4.3
+
+ If ``autosummary_ignore___all__`` is ``False``, this configuration value
+ is ignored for members listed in ``__all__``.
+
+.. confval:: autosummary_ignore___all__
+
+ If ``False`` and a module has the ``__all__`` attribute set, autosummary
+ documents every member listed in ``__all__`` and no others. Default is
+ ``True``
+
+ Note that if an imported member is listed in ``__all__``, it will be
+ documented regardless of the value of ``autosummary_imported_members``. To
+ match the behaviour of ``from module import *``, set
+ ``autosummary_ignore___all__`` to False and ``autosummary_imported_members``
+ to True.
+
+ .. versionadded:: 4.3
+
.. confval:: autosummary_filename_map
A dict mapping object names to filenames. This is necessary to avoid