summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBlaise Laflamme <blaise@laflamme.org>2011-11-26 20:02:56 -0500
committerBlaise Laflamme <blaise@laflamme.org>2011-11-26 20:02:56 -0500
commitecf7a2b8ec62c542aed17558d2525f495a72ae3b (patch)
tree6e048a381be375d818e71baa5fd4b6f120f3740d /docs
parenta3a2186ab501f68de43c76d7d30194169360dc0e (diff)
downloadpyramid-ecf7a2b8ec62c542aed17558d2525f495a72ae3b.tar.gz
pyramid-ecf7a2b8ec62c542aed17558d2525f495a72ae3b.tar.bz2
pyramid-ecf7a2b8ec62c542aed17558d2525f495a72ae3b.zip
attempted to fix theme update for rtd
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 895f80344..e37e758ce 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -38,6 +38,7 @@ LaTeXTranslator.visit_inline = nothing
LaTeXTranslator.depart_inline = nothing
book = os.environ.get('BOOK')
+rtd = os.environ.get('READTHEDOCS', None) == 'True'
# If your extensions are in another directory, add it here. If the directory
# is relative to the documentation root, use os.path.abspath to make it
@@ -47,6 +48,8 @@ sys.path.append(os.path.abspath(parent))
wd = os.getcwd()
os.chdir(parent)
os.system('%s setup.py test -q' % sys.executable)
+if rtd:
+ os.system('git submodule update --init')
os.chdir(wd)
for item in os.listdir(parent):