Salome HOME
Detect sphinx theme directly in conf.py.in file SHAPER_V9_1_0RC1
authorrnv <rnv@opencascade.com>
Mon, 20 Aug 2018 12:15:12 +0000 (15:15 +0300)
committerrnv <rnv@opencascade.com>
Mon, 20 Aug 2018 12:15:12 +0000 (15:15 +0300)
dev/cmake/source/conf.py.in
dev/git/conf.py.in

index 89db943dd3223021036cedc5726e8869f625cd10..9c8d1c8209bd1db653c82310df45037fb8aa1d88 100644 (file)
@@ -12,6 +12,7 @@
 # serve to show the default.
 
 import sys, os
+import sphinx
 
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
@@ -91,7 +92,7 @@ pygments_style = 'sphinx'
 
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
-html_theme = '@SPHINX_THEME@'
+html_theme = 'default' if sphinx.version_info[:2] < (1,3) else 'classic'
 
 # Theme options are theme-specific and customize the look and feel of a theme
 # further.  For a list of options available for each theme, see the
index 1144f85e7d84c442c8b290478bb7677db6a40d16..02c713f10af6fba7ceedd30b0f2fee1e79ed76f4 100644 (file)
@@ -12,6 +12,7 @@
 # serve to show the default.
 
 import sys, os
+import sphinx
 
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
@@ -91,7 +92,7 @@ pygments_style = 'sphinx'
 
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
-html_theme = '@SPHINX_THEME@'
+html_theme = 'default' if sphinx.version_info[:2] < (1,3) else 'classic'
 
 # Theme options are theme-specific and customize the look and feel of a theme
 # further.  For a list of options available for each theme, see the