From 7e5b42cf5294568cf5f235f081d81a5e70dfd4c2 Mon Sep 17 00:00:00 2001 From: Sridhar G K Date: Wed, 28 Oct 2026 14:33:36 +0530 Subject: [PATCH] fix(scripts): add latest symlink update, remove force push, and delete one-time backfill utility Signed-off-by: Sridhar G K --- scripts/publish-javadocs-push.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/publish-javadocs-push.sh b/scripts/publish-javadocs-push.sh index 6dbec97b6..1478a8871 100755 --- a/scripts/publish-javadocs-push.sh +++ b/scripts/publish-javadocs-push.sh @@ -37,13 +37,17 @@ rm -rf "docs/${GH_TAG}" mkdir -p "docs/${GH_TAG}" cp -rf "$REPO_ROOT/target/reports/apidocs/." "docs/${GH_TAG}" +# Update docs/latest symlink — plain relative target (no ./) so Jekyll resolves it correctly. +printf "\n>>>>> Updating docs/latest -> %s\n" "$GH_TAG" +ln -sfn "${GH_TAG}" "docs/latest" + printf "\n>>>>> Generating gh-pages index.html...\n" "$SCRIPT_DIR/generate-javadoc-index.sh" > index.html printf "\n>>>>> Committing new javadoc...\n" git add -f . git commit -m "docs: latest javadoc for ${GH_TAG}" -git push -f origin gh-pages +git push origin gh-pages popd