You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2016/01/03 14:52:07 UTC
libcloud git commit: Only apply "orphan" workaround on Travis.
Repository: libcloud
Updated Branches:
refs/heads/trunk 30b11131f -> fbd9eb63e
Only apply "orphan" workaround on Travis.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/fbd9eb63
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/fbd9eb63
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/fbd9eb63
Branch: refs/heads/trunk
Commit: fbd9eb63eb837fc774769ed4ea1eb35b483ac8e3
Parents: 30b1113
Author: Tomaz Muraus <to...@tomaz.me>
Authored: Sun Jan 3 21:51:41 2016 +0800
Committer: Tomaz Muraus <to...@tomaz.me>
Committed: Sun Jan 3 21:51:41 2016 +0800
----------------------------------------------------------------------
docs/conf.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/fbd9eb63/docs/conf.py
----------------------------------------------------------------------
diff --git a/docs/conf.py b/docs/conf.py
index c61e38e..1bb0f77 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -25,13 +25,14 @@ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
BASE_DIR = os.path.abspath(BASE_DIR)
# Detect if we are running on read the docs
-on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
-api_docs_files = glob.glob(os.path.join(BASE_DIR, 'apidocs/') + '*.rst')
+on_rtd = os.environ.get('READTHEDOCS', '').lower() == 'True'
+on_travis = os.environ.get('TRAVIS', '').lower() == 'true'
if on_rtd:
cmd = 'sphinx-apidoc -d 3 -o apidocs/ ../libcloud/'
subprocess.call(cmd, shell=True)
+if on_travis:
# Hack, we can't use "exclude_patterns" since then api docs won't
# get published on readthedocs
api_docs_files = glob.glob(os.path.join(BASE_DIR, 'apidocs/') + '*.rst')