Skip to content

Commit 39a5477

Browse files
committed
refine docs.sh
1 parent de8927e commit 39a5477

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

paddle/scripts/travis/docs.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,8 @@ cmake .. -DCMAKE_BUILD_TYPE=Debug -DWITH_GPU=OFF -DWITH_DOC=ON
88
make paddle_docs paddle_docs_cn
99

1010
# check websites for broken links
11-
set +e
12-
for i in cn en; do
13-
linkchecker doc/$i/html/index.html
14-
if [ $? -ne 0 ]; then
15-
exit 1
16-
fi
17-
done
18-
set -e
11+
linkchecker doc/en/html/index.html
12+
linkchecker doc/cn/html/index.html
1913

2014
# Parse Github URL
2115
REPO=`git config remote.origin.url`

0 commit comments

Comments
 (0)