|
|
|
@ -1,13 +1,17 @@
|
|
|
|
|
diff -up waf-1.8.15/docs/sphinx/conf.py.orig waf-1.8.15/docs/sphinx/conf.py
|
|
|
|
|
--- waf-1.8.15/docs/sphinx/conf.py.orig 2015-10-20 09:27:38.787867271 +0200
|
|
|
|
|
+++ waf-1.8.15/docs/sphinx/conf.py 2015-10-24 12:29:30.497809066 +0200
|
|
|
|
|
@@ -396,7 +396,11 @@ pygments_style = 'sphinx'
|
|
|
|
|
diff --git a/docs/sphinx/conf.py b/docs/sphinx/conf.py
|
|
|
|
|
index 275fbcc..59a3214 100644
|
|
|
|
|
--- a/docs/sphinx/conf.py
|
|
|
|
|
+++ b/docs/sphinx/conf.py
|
|
|
|
|
@@ -396,7 +396,14 @@ pygments_style = 'sphinx'
|
|
|
|
|
|
|
|
|
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
|
|
|
|
# a list of builtin themes.
|
|
|
|
|
-html_theme = 'classic'
|
|
|
|
|
+from sphinx import version_info
|
|
|
|
|
+if (1, 3) <= version_info:
|
|
|
|
|
+try:
|
|
|
|
|
+ from sphinx import version_info
|
|
|
|
|
+except ImportError:
|
|
|
|
|
+ version_info = None
|
|
|
|
|
+if version_info and (1, 3) <= version_info:
|
|
|
|
|
+ html_theme = 'classic'
|
|
|
|
|
+else:
|
|
|
|
|
+ html_theme = 'default'
|
|
|
|
|