From 327e1373c8ed6042e3400c736db97cb4dd86dd9d Mon Sep 17 00:00:00 2001
From: Yaroslav Halchenko <debian@onerussian.com>
Date: Thu, 8 Oct 2015 13:05:11 -0700
Subject: DOC(ENH): specify path to rtd theme explicitly

Patch-Name: changeset_48582be.diff
---
 docs/conf.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/docs/conf.py b/docs/conf.py
index 2d22c6a..a593bbd 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -108,7 +108,10 @@ html_theme = 'sphinx_rtd_theme'
 #html_theme_options = {}
 
 # Add any paths that contain custom themes here, relative to this directory.
-#html_theme_path = []
+# Add path to the RTD explicitly to robustify builds (otherwise might
+# fail in a clean Debian build env)
+import sphinx_rtd_theme
+html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
 
 
 # The style sheet to use for HTML and HTML Help pages. A file of that name
