From 39a547741cb953bc92095ff74b3962336acab3f8 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Wed, 21 Dec 2016 10:59:37 +0800 Subject: [PATCH] refine docs.sh --- paddle/scripts/travis/docs.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/paddle/scripts/travis/docs.sh b/paddle/scripts/travis/docs.sh index 1b05dce29..8690fe1d4 100755 --- a/paddle/scripts/travis/docs.sh +++ b/paddle/scripts/travis/docs.sh @@ -8,14 +8,8 @@ cmake .. -DCMAKE_BUILD_TYPE=Debug -DWITH_GPU=OFF -DWITH_DOC=ON make paddle_docs paddle_docs_cn # check websites for broken links -set +e -for i in cn en; do - linkchecker doc/$i/html/index.html - if [ $? -ne 0 ]; then - exit 1 - fi -done -set -e +linkchecker doc/en/html/index.html +linkchecker doc/cn/html/index.html # Parse Github URL REPO=`git config remote.origin.url` -- GitLab