summaryrefslogtreecommitdiffstats
path: root/base/common
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2016-02-29 09:47:39 +0100
committerChristian Heimes <cheimes@redhat.com>2016-02-29 16:11:17 +0100
commit11f8fbb0d97470d7f5fa4de261f911b95d701354 (patch)
tree22c7ec5a374d42ab772991de0b664611badf6b17 /base/common
parentb36717fbe92875a1c6ae7f255514a17639b25976 (diff)
downloadpki-11f8fbb0d97470d7f5fa4de261f911b95d701354.tar.gz
pki-11f8fbb0d97470d7f5fa4de261f911b95d701354.tar.xz
pki-11f8fbb0d97470d7f5fa4de261f911b95d701354.zip
Sphinx 1.3 has renamed the default scheme
Use html_theme = 'classic' on sphinx 1.3 to silence this warning: WARNING: 'default' html theme has been renamed to 'classic'. Please change your html_theme setting either to the new 'alabaster' default theme, or to 'classic' to keep using the old default.
Diffstat (limited to 'base/common')
-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