[DOCS] Reduce artifcats generated by sphinx gallery (#5208)
authorTianqi Chen <tqchen@users.noreply.github.com>
Thu, 2 Apr 2020 02:44:42 +0000 (19:44 -0700)
committerGitHub <noreply@github.com>
Thu, 2 Apr 2020 02:44:42 +0000 (19:44 -0700)
docs/conf.py
tests/scripts/task_python_docs.sh

index 81d6c1c..6ef86ca 100644 (file)
@@ -218,6 +218,8 @@ sphinx_gallery_conf = {
     'subsection_order': subsection_order,
     'filename_pattern': os.environ.get("TVM_TUTORIAL_EXEC_PATTERN", ".py"),
     'find_mayavi_figures': False,
+    'download_all_examples': False,
+    "min_reported_time": 60,
     'expected_failing_examples': []
 }
 
index 9a144a7..2d59411 100755 (executable)
@@ -39,6 +39,7 @@ cd ..
 
 rm -rf _docs
 mv docs/_build/html _docs
+rm -f _docs/.buildinfo
 
 # C++ doc
 make doc