diff options
author | pierregm <pierregmcode@gmail.com> | 2010-10-11 23:02:10 +0200 |
---|---|---|
committer | pierregm <pierregmcode@gmail.com> | 2010-10-11 23:02:10 +0200 |
commit | a14dd542532d383610c1b01c5698b137dd058fea (patch) | |
tree | 036f0452ee16fe1b9b74c13e6ad9bb9155310256 /doc/source/conf.py | |
parent | 61d945bdb5c9b2b3329e1b8468b5c7d0596dd9fc (diff) | |
parent | 11ee694744f2552d77652ed929fdc2b4ccca6843 (diff) | |
download | numpy-a14dd542532d383610c1b01c5698b137dd058fea.tar.gz |
merging refs/remotes/origin/master into HEAD
Diffstat (limited to 'doc/source/conf.py')
-rw-r--r-- | doc/source/conf.py | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index 59bf3e909..4dfec91db 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -4,8 +4,10 @@ import sys, os, re # Check Sphinx version import sphinx -if sphinx.__version__ < "0.5": - raise RuntimeError("Sphinx 0.5.dev or newer required") +if sphinx.__version__ < "1.0.1": + raise RuntimeError("Sphinx 1.0.1 or newer required") + +needs_sphinx = '1.0' # ----------------------------------------------------------------------------- # General configuration @@ -18,15 +20,9 @@ sys.path.insert(0, os.path.abspath('../sphinxext')) extensions = ['sphinx.ext.autodoc', 'sphinx.ext.pngmath', 'numpydoc', 'sphinx.ext.intersphinx', 'sphinx.ext.coverage', - 'sphinx.ext.doctest', + 'sphinx.ext.doctest', 'sphinx.ext.autosummary', 'plot_directive'] -if sphinx.__version__ >= "0.7": - extensions.append('sphinx.ext.autosummary') -else: - extensions.append('autosummary') - extensions.append('only_directives') - # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -222,9 +218,8 @@ numpydoc_use_plots = True # Autosummary # ----------------------------------------------------------------------------- -if sphinx.__version__ >= "0.7": - import glob - autosummary_generate = glob.glob("reference/*.rst") +import glob +autosummary_generate = glob.glob("reference/*.rst") # ----------------------------------------------------------------------------- # Coverage checker |