mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #7365 from tk0miya/7364_autosummary_crashed
Fix #7364: autosummary: crashed when autosummary_generate is False
This commit is contained in:
commit
955d02c983
1
CHANGES
1
CHANGES
@ -16,6 +16,7 @@ Features added
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #7364: autosummary: crashed when :confval:`autosummary_generate` is False
|
||||
* #7370: autosummary: raises UnboundLocalError when unknown module given
|
||||
|
||||
Testing
|
||||
|
@ -722,6 +722,8 @@ def process_generate_options(app: Sphinx) -> None:
|
||||
env = app.builder.env
|
||||
genfiles = [env.doc2path(x, base=None) for x in env.found_docs
|
||||
if os.path.isfile(env.doc2path(x))]
|
||||
elif genfiles is False:
|
||||
pass
|
||||
else:
|
||||
ext = list(app.config.source_suffix)
|
||||
genfiles = [genfile + (ext[0] if not genfile.endswith(tuple(ext)) else '')
|
||||
|
Loading…
Reference in New Issue
Block a user