[yt-svn] commit/yt-doc: MatthewTurk: If we're on RTD, don't build API docs.
Bitbucket
commits-noreply at bitbucket.org
Tue Nov 20 12:26:33 PST 2012
1 new commit in yt-doc:
https://bitbucket.org/yt_analysis/yt-doc/changeset/ed2b2d6772c0/
changeset: ed2b2d6772c0
user: MatthewTurk
date: 2012-11-20 21:25:20
summary: If we're on RTD, don't build API docs.
affected #: 1 file
diff -r 32b3509b6d3f3e7593309dc1ecec1d63b17f87f6 -r ed2b2d6772c06e67fb40d7de0cd23d821136b240 source/conf.py
--- a/source/conf.py
+++ b/source/conf.py
@@ -13,6 +13,8 @@
import sys, os, glob
+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.
@@ -241,4 +243,5 @@
'http://matplotlib.sourceforge.net/': None,
}
-autosummary_generate = glob.glob("api/api.rst")
+if not on_rtd:
+ autosummary_generate = glob.glob("api/api.rst")
Repository URL: https://bitbucket.org/yt_analysis/yt-doc/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list