From 89eb5ee315124c9ee8fc214185a614e6aeec2cfb Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Thu, 28 Nov 2013 01:46:08 -0700 Subject: [PATCH] add autodoc, numpydoc and doctest to sphinx to generate API doc --- doc/conf.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index 270e050ac..601e717dd 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -25,7 +25,13 @@ import sys, os # Add any Sphinx extension module names here, as strings. They can be extensions # 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. templates_path = ['_templates']