From 2cd6321dc5828eaaf0c2198a180d66d2d47550c4 Mon Sep 17 00:00:00 2001 From: Tianqi Chen Date: Tue, 12 May 2020 17:17:40 -0700 Subject: [PATCH] [0.6-BACKPORT] Improve robustness of the docs build (#5583) --- tests/scripts/task_python_docs.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/scripts/task_python_docs.sh b/tests/scripts/task_python_docs.sh index be511725e774..8a11d247adbd 100755 --- a/tests/scripts/task_python_docs.sh +++ b/tests/scripts/task_python_docs.sh @@ -25,6 +25,12 @@ rm -rf docs/_build/html/javadoc # remove stale tutorials and always build from scratch. rm -rf docs/tutorials +rm -rf docs/vta/tutorials + +# cleanup stale log files +find . -type f -path "*.log" | xargs rm -f +find . -type f -path "*.pyc" | xargs rm -f +make cython3 # C++ doc make doc @@ -37,7 +43,6 @@ mv out docs/_build/html/jsdoc make javadoc mv jvm/core/target/site/apidocs docs/_build/html/javadoc -rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc cd docs PYTHONPATH=`pwd`/../python make html