Salome HOME
Further fix for CaseReader Py3 ...
[tools/medcoupling.git] / doc / user / conf.py.in
index 0b143134df7bcaabd9eee88c33da15d8de318034..41c42c7a100f20153396231b9c20cf07a814a2a7 100644 (file)
@@ -12,6 +12,7 @@
 # serve to show the default.
 
 import sys, os
+import sphinx
 
 # If your extensions are in another directory, add it here. If the directory
 # is relative to the documentation root, use os.path.abspath to make it
@@ -23,7 +24,7 @@ import sys, os
 
 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sphinx.ext.pngmath', 'sphinx.ext.mathjax']
+extensions = ['sphinx.ext.mathjax']
 
 # Add any paths that contain templates here, relative to this directory.
 #templates_path = ['_templates']
@@ -88,8 +89,7 @@ pygments_style = 'sphinx'
 
 # Options for HTML output
 # -----------------------
-
-html_theme = '@SPHINX_THEME@'
+html_theme = 'default' if sphinx.version_info[:2] < (1,3) else 'classic'
 
 # The style sheet to use for HTML and HTML Help pages. A file of that name
 # must exist either in Sphinx' static/ path, or in one of the custom paths