diff --git a/ci/build_docs.sh b/ci/build_docs.sh index 3045f98695c..8e7cfc2c4b8 100755 --- a/ci/build_docs.sh +++ b/ci/build_docs.sh @@ -39,8 +39,9 @@ rapids-mamba-retry install \ rapids-logger "Install cugraph-dgl" rapids-mamba-retry install "${PYTHON_CHANNEL}/linux-64/cugraph-dgl-*.tar.bz2" -export RAPIDS_VERSION_NUMBER="$(sed -E -e 's/^([0-9]{2})\.([0-9]{2})\.([0-9]{2})/\1.\2/' VERSION)" -export RAPIDS_VERSION="$RAPIDS_VERSION_NUMBER" +export RAPIDS_VERSION="$(rapids-version)" +export RAPIDS_VERSION_MAJOR_MINOR="$(rapids-version-major-minor)" +export RAPIDS_VERSION_NUMBER="$RAPIDS_VERSION_MAJOR_MINOR" export RAPIDS_DOCS_DIR="$(mktemp -d)" for PROJECT in libcugraphops libwholegraph; do diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index ee5ae679b0c..241cb17804d 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -584,7 +584,7 @@ find_package(Doxygen 1.8.11) if(Doxygen_FOUND) add_custom_command(OUTPUT CUGRAPH_DOXYGEN WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/doxygen - COMMAND ${CMAKE_COMMAND} -E env "RAPIDS_VERSION=${RAPIDS_VERSION}" doxygen Doxyfile + COMMAND ${CMAKE_COMMAND} -E env "RAPIDS_VERSION_MAJOR_MINOR=${RAPIDS_VERSION_MAJOR_MINOR}" doxygen Doxyfile VERBATIM) add_custom_target(docs_cugraph DEPENDS CUGRAPH_DOXYGEN)