]> SALOME platform Git repositories - modules/yacs.git/commitdiff
Salome HOME
Detect sphinx theme directly in conf.py.in file
authorrnv <rnv@opencascade.com>
Thu, 9 Aug 2018 16:37:41 +0000 (19:37 +0300)
committerrnv <rnv@opencascade.com>
Thu, 9 Aug 2018 16:37:41 +0000 (19:37 +0300)
src/AppQuickStart/app-template/doc/conf.py.in

index 6f022ca0796eb4ab3bada0141412087782208347..50913b6be7dfbd85dc2192bde75c9f29f45e65c9 100644 (file)
@@ -9,6 +9,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
@@ -92,7 +93,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 name for this set of Sphinx documents.  If None, it defaults to
 # "<project> v<release> documentation".