From 11f8fbb0d97470d7f5fa4de261f911b95d701354 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 29 Feb 2016 09:47:39 +0100 Subject: 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. --- base/common/python/conf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'base/common/python') 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 -- cgit