diff options
author | Kexuan Sun <me@kianasun.com> | 2017-11-21 18:02:16 -0800 |
---|---|---|
committer | Kexuan Sun <me@kianasun.com> | 2017-11-21 18:02:16 -0800 |
commit | 72ba6f150bfec88866381b367d3bedcc3270453e (patch) | |
tree | 15bfa1b7ad48e7528d56fa82b7b4ea0298e313a8 /doc/source/conf.py | |
parent | 14f8e56f48689a9f5b5e7736c25ccbc970363ad4 (diff) | |
download | numpy-72ba6f150bfec88866381b367d3bedcc3270453e.tar.gz |
Changed sphinx extension sphinx.ext.pngmath to sphinx.ext.imgmath.
Diffstat (limited to 'doc/source/conf.py')
-rw-r--r-- | doc/source/conf.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index 9ac729961..b89639ae8 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -19,12 +19,18 @@ needs_sphinx = '1.0' sys.path.insert(0, os.path.abspath('../sphinxext')) -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.pngmath', 'numpydoc', +extensions = ['sphinx.ext.autodoc', 'numpydoc', 'sphinx.ext.intersphinx', 'sphinx.ext.coverage', 'sphinx.ext.doctest', 'sphinx.ext.autosummary', 'sphinx.ext.graphviz', 'matplotlib.sphinxext.plot_directive'] +if sphinx.__version__ >= "1.4": + extensions.append('sphinx.ext.imgmath') + imgmath_image_format = 'svg' +else: + extensions.append('sphinx.ext.pngmath') + # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] |