Skip to content

Commit

Permalink
add some checks to docs upload (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
AyodeAwe authored Sep 17, 2024
1 parent 6e9b61b commit 1493ed0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tools/rapids-upload-docs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ checks() {
echo "python -m http.server --directory ${RAPIDS_DOCS_DIR}"
exit 0
fi

if [[ ! "${RAPIDS_VERSION_NUMBER}" =~ ^[0-9]{1,2}\.[0-9]{2}$ ]]; then
echo "ERROR: RAPIDS_VERSION_NUMBER must be a version number in the format X.YY or XX.YY."
exit 1
fi

for PROJECT_DIR in "${RAPIDS_DOCS_DIR}"/*; do
if [[ -d "${PROJECT_DIR}/html" && ! -f "${PROJECT_DIR}/html/index.html" ]]; then
echo "ERROR: ${PROJECT_DIR}/html/index.html does not exist."
exit 1
fi
done
}


Expand Down

0 comments on commit 1493ed0

Please sign in to comment.