summaryrefslogtreecommitdiffstats
path: root/base/common/python/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'base/common/python/conf.py')
-rw-r--r--base/common/python/conf.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/base/common/python/conf.py b/base/common/python/conf.py
index f076cf919..3e548147e 100644
--- a/base/common/python/conf.py
+++ b/base/common/python/conf.py
@@ -14,6 +14,7 @@
from __future__ import absolute_import
import sys
import 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
@@ -93,7 +94,10 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-html_theme = 'default'
+if sphinx.version_info < (1, 3):
+ html_theme = 'default'
+else:
+ html_theme = '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