From 29037b9fb107cb7c884e26a36ea3c2bb7a312082 Mon Sep 17 00:00:00 2001 From: rnv Date: Mon, 20 Aug 2018 15:15:12 +0300 Subject: [PATCH] Detect sphinx theme directly in conf.py.in file --- dev/cmake/source/conf.py.in | 3 ++- dev/git/conf.py.in | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 -- 2.39.2