Skip to content
Snippets Groups Projects
Commit a955a771 authored by Marina Ganeva's avatar Marina Ganeva
Browse files

Re #23953 Fix docs build for sphinx 1.8.1

parent 1e035e44
No related branches found
No related tags found
No related merge requests found
...@@ -24,11 +24,15 @@ if sphinx_version > "1.6": ...@@ -24,11 +24,15 @@ if sphinx_version > "1.6":
extensions = [ extensions = [
# we use pngmath over mathjax so that the the offline help isn't reliant on # 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 # anything external and we don't need to include the large mathjax package
'sphinx.ext.pngmath',
'sphinx.ext.autodoc', 'sphinx.ext.autodoc',
'sphinx.ext.intersphinx' '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. # Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] templates_path = ['_templates']
......
...@@ -30,7 +30,6 @@ if sphinx_version > "1.6": ...@@ -30,7 +30,6 @@ if sphinx_version > "1.6":
extensions = [ extensions = [
# we use pngmath over mathjax so that the the offline help isn't reliant on # 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 # anything external and we don't need to include the large mathjax package
'sphinx.ext.pngmath',
'sphinx.ext.autodoc', 'sphinx.ext.autodoc',
'sphinx.ext.intersphinx', 'sphinx.ext.intersphinx',
'sphinx.ext.doctest', 'sphinx.ext.doctest',
...@@ -39,6 +38,10 @@ extensions = [ ...@@ -39,6 +38,10 @@ extensions = [
'mantiddoc.doctest', 'mantiddoc.doctest',
'matplotlib.sphinxext.plot_directive' '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. # Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] templates_path = ['_templates']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment