aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/deploy-docs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/deploy-docs.sh')
-rwxr-xr-xscripts/deploy-docs.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/deploy-docs.sh b/scripts/deploy-docs.sh
index d166c61..b9e8b41 100755
--- a/scripts/deploy-docs.sh
+++ b/scripts/deploy-docs.sh
@@ -80,7 +80,8 @@ update_versions_manifest() {
# Add all tagged versions (sorted in reverse)
if compgen -G "$BUILD_DIR/v*" >/dev/null; then
for dir in $(find "$BUILD_DIR" -maxdepth 1 -type d -name "v*" | sort -Vr); do
- local ver=$(basename "$dir")
+ local ver
+ ver=$(basename "$dir")
versions_json=$(echo "$versions_json" | jq --arg v "$ver" '. += [{"version": $v, "title": $v}]')
done
fi
@@ -88,7 +89,8 @@ update_versions_manifest() {
# Create final JSON structure
jq -n --argjson versions "$versions_json" '{"versions": $versions}' >"$BUILD_DIR/versions.json"
- local version_count=$(echo "$versions_json" | jq 'length')
+ local version_count
+ version_count=$(echo "$versions_json" | jq 'length')
log_success "Versions manifest updated with $version_count version(s)"
}