提交 de8927eb 编写于 作者: L Luo Tao

refine docs.sh

上级 5471e87f
...@@ -9,12 +9,9 @@ make paddle_docs paddle_docs_cn ...@@ -9,12 +9,9 @@ make paddle_docs paddle_docs_cn
# check websites for broken links # check websites for broken links
set +e set +e
linkchecker doc/cn/html/index.html > doc_cn.out for i in cn en; do
linkchecker doc/en/html/index.html > doc_en.out linkchecker doc/$i/html/index.html
for i in doc_cn.out doc_en.out; do
grep " 0 errors found" $i
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
cat $i
exit 1 exit 1
fi fi
done done
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册