This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git


The following commit(s) were added to refs/heads/master by this push:
     new d8b185c  [DOCS] Move the api docs to the api subfolder (#5626)
d8b185c is described below

commit d8b185c674f56a71479cee3381c0655f1633d1d8
Author: Tianqi Chen <[email protected]>
AuthorDate: Tue May 19 21:40:06 2020 -0700

    [DOCS] Move the api docs to the api subfolder (#5626)
    
    * [DOCS] Move the api docs to the api subfolder
    
    * Update numpydoc location
    
    * Ignore 403
    
    * make sure folder exists
---
 docs/conf.py                          | 4 ++--
 tests/scripts/task_python_docs.sh     | 7 ++++---
 tests/scripts/task_sphinx_precheck.sh | 2 +-
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index a0922cf..7ece63b 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -183,7 +183,7 @@ latex_documents = [
 
 intersphinx_mapping = {
     'python': ('https://docs.python.org/{.major}'.format(sys.version_info), 
None),
-    'numpy': ('https://docs.scipy.org/doc/numpy/', None),
+    'numpy': ('https://numpy.org/doc/stable', None),
     'scipy': ('https://docs.scipy.org/doc/scipy/reference', None),
     'matplotlib': ('https://matplotlib.org/', None),
 }
@@ -211,7 +211,7 @@ sphinx_gallery_conf = {
     'reference_url': {
         'tvm': None,
         'matplotlib': 'https://matplotlib.org/',
-        'numpy': 'https://docs.scipy.org/doc/numpy/'
+        'numpy': 'https://numpy.org/doc/stable'
     },
     'examples_dirs': examples_dirs,
     'gallery_dirs': gallery_dirs,
diff --git a/tests/scripts/task_python_docs.sh 
b/tests/scripts/task_python_docs.sh
index 5d0e42e..eaa705d 100755
--- a/tests/scripts/task_python_docs.sh
+++ b/tests/scripts/task_python_docs.sh
@@ -56,9 +56,10 @@ cd ..
 rm -rf _docs
 mv docs/_build/html _docs
 rm -f _docs/.buildinfo
-mv docs/doxygen/html _docs/doxygen
-mv jvm/core/target/site/apidocs _docs/javadoc
-mv web/dist/docs _docs/typedoc
+mkdir -p _docs/api
+mv docs/doxygen/html _docs/api/doxygen
+mv jvm/core/target/site/apidocs _docs/api/javadoc
+mv web/dist/docs _docs/api/typedoc
 
 echo "Start creating the docs tarball.."
 # make the tarball
diff --git a/tests/scripts/task_sphinx_precheck.sh 
b/tests/scripts/task_sphinx_precheck.sh
index a5a0a17..e6de960 100755
--- a/tests/scripts/task_sphinx_precheck.sh
+++ b/tests/scripts/task_sphinx_precheck.sh
@@ -42,7 +42,7 @@ cd docs
 make clean
 TVM_TUTORIAL_EXEC_PATTERN=none make html 2>/tmp/$$.log.txt
 
-grep -v -E 
"__mro__|UserWarning|FutureWarning|tensorflow|Keras|pytorch|TensorFlow" < 
/tmp/$$.log.txt > /tmp/$$.logclean.txt || true
+grep -v -E 
"__mro__|UserWarning|FutureWarning|tensorflow|Keras|pytorch|TensorFlow|403" < 
/tmp/$$.log.txt > /tmp/$$.logclean.txt || true
 echo "---------Sphinx Log----------"
 cat /tmp/$$.logclean.txt
 echo "-----------------------------"

Reply via email to