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

index 59c94551eb6b43e4d89ccb2ffa68ba5ad9087cbb..b6822a5a40ac4826ae197958684a682c66b97f23 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
@@ -105,7 +106,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'
 
 # 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