We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cfc247 commit ac1f099Copy full SHA for ac1f099
doc/conf.py
@@ -43,13 +43,20 @@
43
'sphinx.ext.intersphinx',
44
'sphinx.ext.todo',
45
'numpydoc',
46
- 'sphinx.ext.pngmath',
47
'sphinx.ext.ifconfig',
48
'sphinx.ext.viewcode',
49
'sphinx_gallery.gen_gallery'
50
51
]
52
+# pngmath / imgmath compatibility layer for different sphinx versions
53
+import sphinx
54
+from distutils.version import LooseVersion
55
+if LooseVersion(sphinx.__version__) < LooseVersion('1.4'):
56
+ extensions.append('sphinx.ext.pngmath')
57
+else:
58
+ extensions.append('sphinx.ext.imgmath')
59
+
60
sphinx_gallery_conf = {
61
# path to your examples scripts
62
'examples_dirs' : '../examples',
0 commit comments