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

refine docs.sh

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