This is an automated email from the ASF dual-hosted git repository.
junrushao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new c928852d59 [#15157][Rust][Doc] Re-enable the Rust documentation build
(#15213)
c928852d59 is described below
commit c928852d59282e39cd5fc162785a4fdf56c5aa1b
Author: Neo Chien <[email protected]>
AuthorDate: Wed Jul 5 14:23:12 2023 +0800
[#15157][Rust][Doc] Re-enable the Rust documentation build (#15213)
This PR is trying to fix issues #15157 and #9217, any suggestions and
feedback would be appreciated if you are available.
Reference: #9288
---
docs/reference/api/links.rst | 1 +
tests/scripts/task_python_docs.sh | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/docs/reference/api/links.rst b/docs/reference/api/links.rst
index a2a43bf7d0..445b88d61f 100644
--- a/docs/reference/api/links.rst
+++ b/docs/reference/api/links.rst
@@ -24,3 +24,4 @@ build system.
* `C++ doyxgen API <doxygen/index.html>`_
* `Typescript typedoc API <typedoc/index.html>`_
* `Java Javadoc API <javadoc/index.html>`_
+* `Rust Rustdoc API <rust/index.html>`_
diff --git a/tests/scripts/task_python_docs.sh
b/tests/scripts/task_python_docs.sh
index 9690c330c0..0841b358be 100755
--- a/tests/scripts/task_python_docs.sh
+++ b/tests/scripts/task_python_docs.sh
@@ -163,7 +163,7 @@ cd ..
# Rust doc
cd rust
# Temp disable rust doc build
-# cargo doc --workspace --no-deps
+cargo doc --workspace --no-deps
cd ..
# Prepare the doc dir
@@ -173,7 +173,7 @@ rm -f _docs/.buildinfo
mkdir -p _docs/reference/api
mv docs/doxygen/html _docs/reference/api/doxygen
mv jvm/core/target/site/apidocs _docs/reference/api/javadoc
-# mv rust/target/doc _docs/api/rust
+mv rust/target/doc _docs/api/rust
mv web/dist/docs _docs/reference/api/typedoc
git rev-parse HEAD > _docs/commit_hash