From 334bb38992af7816ed7490cf32569a66acdf74a8 Mon Sep 17 00:00:00 2001 From: cchung100m Date: Mon, 3 Jul 2023 22:21:15 +0800 Subject: [PATCH 1/2] [#15157][Rust][Doc] Re-enable the Rust documentation build --- 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 a2a43bf7d0f2..7bc160c1c19b 100644 --- a/docs/reference/api/links.rst +++ b/docs/reference/api/links.rst @@ -24,3 +24,4 @@ build system. * `C++ doyxgen API `_ * `Typescript typedoc API `_ * `Java Javadoc API `_ +* `Rust Rustdoc API `_ \ No newline at end of file diff --git a/tests/scripts/task_python_docs.sh b/tests/scripts/task_python_docs.sh index 9690c330c0df..0841b358be30 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 From 8d618381b8d254025540849c0f7c75d0d3c87311 Mon Sep 17 00:00:00 2001 From: cchung100m Date: Tue, 4 Jul 2023 21:09:38 +0800 Subject: [PATCH 2/2] [#15157][Rust][Doc] Fix lint error: The above files are missing a trailing newline or have too many trailing newlines --- docs/reference/api/links.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/api/links.rst b/docs/reference/api/links.rst index 7bc160c1c19b..445b88d61fe5 100644 --- a/docs/reference/api/links.rst +++ b/docs/reference/api/links.rst @@ -24,4 +24,4 @@ build system. * `C++ doyxgen API `_ * `Typescript typedoc API `_ * `Java Javadoc API `_ -* `Rust Rustdoc API `_ \ No newline at end of file +* `Rust Rustdoc API `_