From: rnv Date: Mon, 20 Aug 2018 12:15:12 +0000 (+0300) Subject: Detect sphinx theme directly in conf.py.in file X-Git-Tag: SHAPER_V9_1_0RC1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=29037b9fb107cb7c884e26a36ea3c2bb7a312082;p=tools%2Fdocumentation.git Detect sphinx theme directly in conf.py.in file --- diff --git a/dev/cmake/source/conf.py.in b/dev/cmake/source/conf.py.in index 89db943..9c8d1c8 100644 --- a/dev/cmake/source/conf.py.in +++ b/dev/cmake/source/conf.py.in @@ -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 diff --git a/dev/git/conf.py.in b/dev/git/conf.py.in index 1144f85..02c713f 100644 --- a/dev/git/conf.py.in +++ b/dev/git/conf.py.in @@ -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