add autodoc, numpydoc and doctest to sphinx to generate API doc

This commit is contained in:
Robert Jordens 2013-11-28 01:46:08 -07:00 committed by Sebastien Bourdeauducq
parent 6140fd2594
commit 89eb5ee315
1 changed files with 7 additions and 1 deletions

View File

@ -25,7 +25,13 @@ import sys, os
# Add any Sphinx extension module names here, as strings. They can be extensions # Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.pngmath'] extensions = [
'sphinx.ext.pngmath',
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.autosummary',
'numpydoc', # to preprocess docstrings
]
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] templates_path = ['_templates']