File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed
Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ before_install:
5656 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo paddle/scripts/travis/before_install.linux.sh; fi
5757 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then paddle/scripts/travis/before_install.osx.sh; fi
5858 - if [[ "$JOB" == "PRE_COMMIT" ]]; then sudo ln -s /usr/bin/clang-format-3.8 /usr/bin/clang-format; fi
59- - pip install wheel protobuf sphinx recommonmark virtualenv numpy sphinx_rtd_theme pre-commit
59+ - pip install wheel protobuf sphinx recommonmark virtualenv numpy sphinx_rtd_theme pre-commit requests==2.9.2 LinkChecker
6060script :
6161 - paddle/scripts/travis/main.sh
6262notifications :
Original file line number Diff line number Diff line change @@ -7,6 +7,19 @@ source ./common.sh
77cmake .. -DCMAKE_BUILD_TYPE=Debug -DWITH_GPU=OFF -DWITH_DOC=ON
88make paddle_docs paddle_docs_cn
99
10+ # check websites for broken links
11+ set +e
12+ linkchecker doc/cn/html/index.html > doc_cn.out
13+ linkchecker doc/en/html/index.html > doc_en.out
14+ for i in doc_cn.out doc_en.out; do
15+ echo $i
16+ grep " 0 errors found" $i
17+ if [ $? -ne 0 ]; then
18+ cat $i
19+ exit 1
20+ fi
21+ done
22+
1023# Parse Github URL
1124REPO=` git config remote.origin.url`
1225SSH_REPO=${REPO/ https: \/\/ github.com\/ / git@ github.com: }
@@ -35,8 +48,8 @@ git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
3548
3649# remove old docs. mv new docs.
3750rm -rf doc doc_cn
38- mv ../doc_cn /html doc_cn
39- mv ../doc/html doc
51+ mv ../doc/cn /html doc_cn
52+ mv ../doc/en/ html doc
4053
4154# Check is there anything changed.
4255set +e
You can’t perform that action at this time.
0 commit comments