##// END OF EJS Templates
Use Sphinx autosummary extension for API docs index
Thomas Kluyver -
Show More
@@ -44,6 +44,7 b' extensions = ['
44 'matplotlib.sphinxext.only_directives',
44 'matplotlib.sphinxext.only_directives',
45 'matplotlib.sphinxext.plot_directive',
45 'matplotlib.sphinxext.plot_directive',
46 'sphinx.ext.autodoc',
46 'sphinx.ext.autodoc',
47 'sphinx.ext.autosummary',
47 'sphinx.ext.doctest',
48 'sphinx.ext.doctest',
48 'sphinx.ext.inheritance_diagram',
49 'sphinx.ext.inheritance_diagram',
49 'sphinx.ext.intersphinx',
50 'sphinx.ext.intersphinx',
@@ -415,7 +415,8 b' class ApiDocWriter(object):'
415 idx = open(path,'wt')
415 idx = open(path,'wt')
416 w = idx.write
416 w = idx.write
417 w('.. AUTO-GENERATED FILE -- DO NOT EDIT!\n\n')
417 w('.. AUTO-GENERATED FILE -- DO NOT EDIT!\n\n')
418 w('.. toctree::\n\n')
418 w('.. autosummary::\n'
419 for f in self.written_modules:
419 ' :toctree: %s\n\n' % relpath)
420 w(' %s\n' % os.path.join(relpath,f))
420 for mod in self.written_modules:
421 w(' %s\n' % mod)
421 idx.close()
422 idx.close()
General Comments 0
You need to be logged in to leave comments. Login now