Only insert ":orphan" note if apidocs/modules.rst file exists.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/a212c3d4 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/a212c3d4 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/a212c3d4 Branch: refs/heads/trunk Commit: a212c3d4765d1bf9d00b5facada117cf7b1cdb0b Parents: 1b8d594 Author: Tomaz Muraus <[email protected]> Authored: Sun Sep 10 21:42:14 2017 +0200 Committer: Tomaz Muraus <[email protected]> Committed: Sun Sep 10 21:51:29 2017 +0200 ---------------------------------------------------------------------- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/a212c3d4/tox.ini ---------------------------------------------------------------------- diff --git a/tox.ini b/tox.ini index fb1ced3..6553720 100644 --- a/tox.ini +++ b/tox.ini @@ -36,7 +36,7 @@ deps = sphinx changedir = docs commands = python ../contrib/generate_provider_feature_matrix_table.py sphinx-apidoc -d 4 ../libcloud/ -o apidocs/ - /bin/bash -c "grep orphan apidocs/modules.rst || sed -i '1i :orphan:\n' apidocs/modules.rst" + /bin/bash -c "ls apidocs/modules.rst && (grep orphan apidocs/modules.rst || sed -i '1i :orphan:\n' apidocs/modules.rst) || (exit 0)" ; sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html [testenv:docs-travis] @@ -48,7 +48,7 @@ deps = sphinx lockfile changedir = docs commands = python ../contrib/generate_provider_feature_matrix_table.py - /bin/bash -c "grep orphan apidocs/modules.rst || sed -i '1i :orphan:\n' apidocs/modules.rst" + /bin/bash -c "ls apidocs/modules.rst && (grep orphan apidocs/modules.rst || sed -i '1i :orphan:\n' apidocs/modules.rst) || (exit 0)" ; sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html [testenv:scrape-ec2-prices]
