Salome HOME
Detect sphinx theme directly in conf.py.in file SHAPER_V9_1_0RC1
authorrnv <rnv@opencascade.com>
Thu, 9 Aug 2018 16:40:20 +0000 (19:40 +0300)
committerrnv <rnv@opencascade.com>
Thu, 9 Aug 2018 16:40:20 +0000 (19:40 +0300)
doc/dev/conf.py.in

index 9561b39e816fcb1e1c10407f88f66ad2f8057606..bd2b6e0c46491b7365bb25d5fbb034cdd9c64eeb 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
@@ -103,7 +104,7 @@ pygments_style = 'sphinx'
 
 # The theme to use for HTML and HTML Help pages.  Major themes that come with
 # Sphinx are currently 'default' and 'sphinxdoc'.
-html_theme = '@SPHINX_THEME@'
+html_theme = 'default' if sphinx.version_info[:2] < (1,3) else 'classic'
 #html_theme_options = {}
 
 # Add any paths that contain custom themes here, relative to this directory.