From da1e63bab83ee9fd366abd1a746fb23afe08a91f Mon Sep 17 00:00:00 2001 From: Ben Frederickson Date: Thu, 18 Apr 2024 10:12:09 -0700 Subject: [PATCH] Fix rust docs build (#84) The rust API docs aren't being generated on docs.rapids.ai/cuvs . While the `build.sh docs` script was including the rust api docs, the `ci/build_docs.sh` wasn't. Fix. Authors: - Ben Frederickson (https://github.com/benfred) Approvers: - Corey J. Nolet (https://github.com/cjnolet) - Jake Awe (https://github.com/AyodeAwe) URL: https://github.com/rapidsai/cuvs/pull/84 --- ci/build_docs.sh | 7 +++++++ dependencies.yaml | 1 + 2 files changed, 8 insertions(+) diff --git a/ci/build_docs.sh b/ci/build_docs.sh index 9d4509e08..fbf24b346 100755 --- a/ci/build_docs.sh +++ b/ci/build_docs.sh @@ -40,10 +40,17 @@ pushd cpp/doxygen doxygen Doxyfile popd +rapids-logger "Build Rust docs" +pushd rust +export LIBCLANG_PATH=$(dirname $(find /opt/conda -name libclang.so | head -n 1)) +cargo doc -p cuvs --no-deps +popd + rapids-logger "Build Python docs" pushd docs sphinx-build -b dirhtml source _html sphinx-build -b text source _text +mv ../rust/target/doc ./_html/_static/rust mkdir -p "${RAPIDS_DOCS_DIR}/cuvs/"{html,txt} mv _html/* "${RAPIDS_DOCS_DIR}/cuvs/html" mv _text/* "${RAPIDS_DOCS_DIR}/cuvs/txt" diff --git a/dependencies.yaml b/dependencies.yaml index 1951ee5cf..74b573c01 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -47,6 +47,7 @@ files: - py_version - rust - build + - cuda rust: output: none includes: