Updated Branches:
  refs/heads/trunk a5dabf673 -> 4eabc33bf

docs: Try a nasty RTD hack.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/4eabc33b
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/4eabc33b
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/4eabc33b

Branch: refs/heads/trunk
Commit: 4eabc33bf005e600d698f9f68c89da6c6c98e41f
Parents: a5dabf6
Author: Tomaz Muraus <[email protected]>
Authored: Wed Dec 18 22:09:58 2013 +0100
Committer: Tomaz Muraus <[email protected]>
Committed: Wed Dec 18 22:10:45 2013 +0100

----------------------------------------------------------------------
 docs/conf.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/4eabc33b/docs/conf.py
----------------------------------------------------------------------
diff --git a/docs/conf.py b/docs/conf.py
index 247b3c4..15eefb6 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -13,11 +13,18 @@
 
 import sys, os
 
+on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+
 # 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
 # documentation root, use os.path.abspath to make it absolute, like shown here.
 sys.path.insert(0, os.path.abspath('../'))
 
+# Nasty hack, but RTD doesn't seem to re-create virtualenvs and we are stuck in
+# a bad state now :/
+if on_rtd:
+    sys.path.insert(0, 
'/var/build/user_builds/libcloud/envs/latest/src/sphinxcontrib-fulltoc')
+
 # -- General configuration 
-----------------------------------------------------
 
 # If your documentation needs a minimal Sphinx version, state it here.
@@ -92,8 +99,6 @@ pygments_style = 'sphinx'
 
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
-on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
-
 if on_rtd:
     html_theme = 'default'
     RTD_NEW_THEME = True

Reply via email to