mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #2841 from kdebrab/fix-autosummary-with-multiple-source_suffix
Fix #2485: autosummary with multiple source_suffix values
This commit is contained in:
commit
809bf8616d
@ -555,12 +555,12 @@ def process_generate_options(app):
|
|||||||
|
|
||||||
from sphinx.ext.autosummary.generate import generate_autosummary_docs
|
from sphinx.ext.autosummary.generate import generate_autosummary_docs
|
||||||
|
|
||||||
ext = app.config.source_suffix[0]
|
ext = app.config.source_suffix
|
||||||
genfiles = [genfile + (not genfile.endswith(ext) and ext or '')
|
genfiles = [genfile + (not genfile.endswith(tuple(ext)) and ext[0] or '')
|
||||||
for genfile in genfiles]
|
for genfile in genfiles]
|
||||||
|
|
||||||
generate_autosummary_docs(genfiles, builder=app.builder,
|
generate_autosummary_docs(genfiles, builder=app.builder,
|
||||||
warn=app.warn, info=app.info, suffix=ext,
|
warn=app.warn, info=app.info, suffix=ext[0],
|
||||||
base_path=app.srcdir)
|
base_path=app.srcdir)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user