Fix #9188: autosummary: warning if list is set to autosummary_generate

This commit is contained in:
Takeshi KOMIYA 2021-05-09 22:05:17 +09:00
parent f73e061d2b
commit ab6ec71a89
2 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,9 @@ Features added
Bugs fixed
----------
* #9188: autosummary: warning is emitted if list value is set to
autosummary_generate
Testing
--------

View File

@ -773,7 +773,7 @@ def setup(app: Sphinx) -> Dict[str, Any]:
app.connect('builder-inited', process_generate_options)
app.add_config_value('autosummary_context', {}, True)
app.add_config_value('autosummary_filename_map', {}, 'html')
app.add_config_value('autosummary_generate', True, True, [bool])
app.add_config_value('autosummary_generate', True, True, [bool, list])
app.add_config_value('autosummary_generate_overwrite', True, False)
app.add_config_value('autosummary_mock_imports',
lambda config: config.autodoc_mock_imports, 'env')