summaryrefslogtreecommitdiff
path: root/sphinx/ext/autosummary/__init__.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-04-21 23:22:05 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-04-21 23:38:18 +0900
commit7671bcc23bbcacc0c2dd0e927477f6e6d11b93eb (patch)
tree1dc0488d5fa251135e5e307e83637a370f96a164 /sphinx/ext/autosummary/__init__.py
parentb9da9237bc04e6d8da46045b18780d853c7581ef (diff)
downloadsphinx-git-7671bcc23bbcacc0c2dd0e927477f6e6d11b93eb.tar.gz
Remove autosummary_recursive configuration
Now autosummary directive has :recursive: option to enable the recursive feature individually. So the configuration is no longer needed.
Diffstat (limited to 'sphinx/ext/autosummary/__init__.py')
-rw-r--r--sphinx/ext/autosummary/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/sphinx/ext/autosummary/__init__.py b/sphinx/ext/autosummary/__init__.py
index c9427d8ce..23527d5c8 100644
--- a/sphinx/ext/autosummary/__init__.py
+++ b/sphinx/ext/autosummary/__init__.py
@@ -755,8 +755,7 @@ def process_generate_options(app: Sphinx) -> None:
generate_autosummary_docs(genfiles, builder=app.builder,
suffix=suffix, base_path=app.srcdir,
app=app, imported_members=imported_members,
- overwrite=app.config.autosummary_generate_overwrite,
- recursive=app.config.autosummary_recursive)
+ overwrite=app.config.autosummary_generate_overwrite)
def setup(app: Sphinx) -> Dict[str, Any]:
@@ -779,7 +778,6 @@ def setup(app: Sphinx) -> Dict[str, Any]:
app.connect('builder-inited', process_generate_options)
app.add_config_value('autosummary_generate', [], True, [bool])
app.add_config_value('autosummary_generate_overwrite', True, False)
- app.add_config_value('autosummary_recursive', False, True)
app.add_config_value('autosummary_mock_imports',
lambda config: config.autodoc_mock_imports, 'env')
app.add_config_value('autosummary_imported_members', [], False, [bool])