Skip to content

Commit

Permalink
Fix sphinx-doc#9188: autosummary: warning if list is set to autosumma…
Browse files Browse the repository at this point in the history
…ry_generate
  • Loading branch information
tk0miya committed May 9, 2021
1 parent f73e061 commit ab6ec71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Features added
Bugs fixed
----------

* #9188: autosummary: warning is emitted if list value is set to
autosummary_generate

Testing
--------

Expand Down
2 changes: 1 addition & 1 deletion sphinx/ext/autosummary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit ab6ec71

Please sign in to comment.