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:
Georg Brandl 2013-11-27 20:20:30 +01:00
commit 68820c94f4

View File

@ -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'