Skip to content

Commit c8baa29

Browse files
authored
use rapids-upload-docs script (#1194)
This PR updates the `build_docs.sh` script to use the new consolidatory `rapids-upload-script` [shared script](rapidsai/gha-tools#56). The shared script enables docs uploads to applicable S3 buckets for branch. nightly and PR builds. Authors: - Jake Awe (https://github.com/AyodeAwe) - AJ Schmidt (https://github.com/ajschmidt8) Approvers: - Peter Andreas Entschev (https://github.com/pentschev) - AJ Schmidt (https://github.com/ajschmidt8) URL: #1194
1 parent 262fb8a commit c8baa29

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

ci/build_docs.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ rapids-print-env
1818
rapids-logger "Downloading artifacts from previous jobs"
1919

2020
PYTHON_CHANNEL=$(rapids-download-conda-from-s3 python)
21-
VERSION_NUMBER="23.08"
2221

2322
rapids-mamba-retry install \
2423
--channel "${PYTHON_CHANNEL}" \
2524
dask-cuda
2625

27-
# Build Python docs
26+
export RAPIDS_VERSION_NUMBER="23.08"
27+
export RAPIDS_DOCS_DIR="$(mktemp -d)"
28+
2829
rapids-logger "Build Python docs"
2930
pushd docs
3031
sphinx-build -b dirhtml ./source _html
3132
sphinx-build -b text ./source _text
33+
mkdir -p "${RAPIDS_DOCS_DIR}/dask-cuda/"{html,txt}
34+
mv _html/* "${RAPIDS_DOCS_DIR}/dask-cuda/html"
35+
mv _text/* "${RAPIDS_DOCS_DIR}/dask-cuda/txt"
3236
popd
3337

34-
if [[ "${RAPIDS_BUILD_TYPE}" != "pull-request" ]]; then
35-
rapids-logger "Upload Docs to S3"
36-
aws s3 sync --no-progress --delete docs/_html "s3://rapidsai-docs/dask-cuda/${VERSION_NUMBER}/html"
37-
aws s3 sync --no-progress --delete docs/_text "s3://rapidsai-docs/dask-cuda/${VERSION_NUMBER}/txt"
38-
fi
38+
rapids-upload-docs

ci/release/update-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ sed_runner "s/ucx-py=.*/ucx-py=${NEXT_UCXPY_VERSION}/g" dependencies.yaml
4141
for FILE in .github/workflows/*.yaml; do
4242
sed_runner "/shared-action-workflows/ s/@.*/@branch-${NEXT_SHORT_TAG}/g" "${FILE}"
4343
done
44-
sed_runner "s/VERSION_NUMBER=\".*/VERSION_NUMBER=\"${NEXT_SHORT_TAG}\"/g" ci/build_docs.sh
44+
sed_runner "s/RAPIDS_VERSION_NUMBER=\".*/RAPIDS_VERSION_NUMBER=\"${NEXT_SHORT_TAG}\"/g" ci/build_docs.sh

0 commit comments

Comments
 (0)