From 6beef099e9f2d1ea932367e88fc93d1419bbe636 Mon Sep 17 00:00:00 2001
From: Andrew Maclean <andrew.amaclean@gmail.com>
Date: Tue, 14 Jul 2015 12:10:07 +1000
Subject: [PATCH] Sphinx 1.3 and later has renamed the default theme to
 classic.

Signed-off-by: Andrew Maclean <andrew.amaclean@gmail.com>
---
 Utilities/Sphinx/conf.py.in | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Utilities/Sphinx/conf.py.in b/Utilities/Sphinx/conf.py.in
index eb24a6e..34bb9db 100644
--- a/Utilities/Sphinx/conf.py.in
+++ b/Utilities/Sphinx/conf.py.in
@@ -13,6 +13,7 @@ import sys
 import os
 import re
 import glob
+from sphinx import version_info
 
 sys.path.insert(0, r'@conf_path@')
 
@@ -59,7 +60,12 @@ man_show_urls = False
 html_show_sourcelink = True
 html_static_path = ['@conf_path@/static']
 html_style = 'cmake.css'
-html_theme = 'default'
+if isinstance(version_info, str):
+    html_theme = 'default'
+elif version_info[0] + version_info[1] / 10.0 > 1.2:
+    html_theme = 'classic'
+else:
+    html_theme = 'default'
 html_title = 'CMake %s Documentation' % release
 html_short_title = '%s Documentation' % release
 html_favicon = '@conf_path@/static/cmake-favicon.ico'
-- 
1.9.5.msysgit.1

