File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-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,10 @@ 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+ linkchecker doc/en/html/index.html
12+ linkchecker doc/cn/html/index.html
13+
1014# Parse Github URL
1115REPO=` git config remote.origin.url`
1216SSH_REPO=${REPO/ https: \/\/ github.com\/ / git@ github.com: }
@@ -35,8 +39,8 @@ git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
3539
3640# remove old docs. mv new docs.
3741rm -rf doc doc_cn
38- mv ../doc_cn /html doc_cn
39- mv ../doc/html doc
42+ mv ../doc/cn /html doc_cn
43+ mv ../doc/en/ html doc
4044
4145# Check is there anything changed.
4246set +e
You can’t perform that action at this time.
0 commit comments