diff --git a/dev-docs/source/conf.py b/dev-docs/source/conf.py index d4dc763ba77ef41f3b20695c7168465c9a661a00..8e39dfd9387c7dd080ceb408f995143908822d37 100644 --- a/dev-docs/source/conf.py +++ b/dev-docs/source/conf.py @@ -24,11 +24,15 @@ if sphinx_version > "1.6": extensions = [ # we use pngmath over mathjax so that the the offline help isn't reliant on # anything external and we don't need to include the large mathjax package - 'sphinx.ext.pngmath', 'sphinx.ext.autodoc', 'sphinx.ext.intersphinx' ] +if sphinx_version > "1.8": + extensions.append('sphinx.ext.imgmath') +else: + extensions.append('sphinx.ext.pngmath') + # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/docs/source/conf.py b/docs/source/conf.py index 2ab8f568b12917ab2d0fc25d9bdc57feaccf33fd..41971491c7479745f2178b14b3cc17ae48785785 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -30,7 +30,6 @@ if sphinx_version > "1.6": extensions = [ # we use pngmath over mathjax so that the the offline help isn't reliant on # anything external and we don't need to include the large mathjax package - 'sphinx.ext.pngmath', 'sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.doctest', @@ -39,6 +38,10 @@ extensions = [ 'mantiddoc.doctest', 'matplotlib.sphinxext.plot_directive' ] +if sphinx_version > "1.8": + extensions.append('sphinx.ext.imgmath') +else: + extensions.append('sphinx.ext.pngmath') # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates']