mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merged in takluyver/sphinx/autosummary-file-ext (pull request #194)
Don't strip file extension from names in autosummary directive.
This commit is contained in:
commit
68820c94f4
@ -206,8 +206,6 @@ class Autosummary(Directive):
|
||||
docnames = []
|
||||
for name, sig, summary, real_name in items:
|
||||
docname = posixpath.join(tree_prefix, real_name)
|
||||
if docname.endswith(suffix):
|
||||
docname = docname[:-len(suffix)]
|
||||
docname = posixpath.normpath(posixpath.join(dirname, docname))
|
||||
if docname not in env.found_docs:
|
||||
self.warn('toctree references unknown document %r'
|
||||
|
Loading…
Reference in New Issue
Block a user