From af09e5bfdba0232b12bf1a5f5cdd448a50faaa13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Wed, 29 Apr 2026 15:12:34 +0200 Subject: [PATCH] fix: remove static versions.html causing infinite redirect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The static versions.html redirected to /versions via meta refresh, but GitHub Pages served this same file at /versions, creating an infinite redirect loop. The Docusaurus page component (src/pages/versions.js) in the ogx repo already handles this route correctly. Changes: - Delete versions.html from the repo root - Remove the cp of versions.html in build-latest.sh - Remove the cp of versions.html in build-and-deploy.yml Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Sébastien Han --- .github/workflows/build-and-deploy.yml | 1 - build-latest.sh | 1 - versions.html | 12 ------------ 3 files changed, 14 deletions(-) delete mode 100644 versions.html diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 40f53cd..6f10c80 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -209,7 +209,6 @@ jobs: # Copy Docusaurus build output cp -r "${{ env.TEMP_DIR }}/ogx/docs/build/"* "$DOCS_DIR/" - cp "${{ github.workspace }}/versions.html" "$DOCS_DIR/versions.html" # Copy versioning files cp "${{ github.workspace }}/versionsArchived.json" "$DOCS_DIR/" diff --git a/build-latest.sh b/build-latest.sh index fc8644c..238629e 100755 --- a/build-latest.sh +++ b/build-latest.sh @@ -79,7 +79,6 @@ rm -rf "$OUTPUT_DIR" mkdir -p "$OUTPUT_DIR" cp -r build/* "$OUTPUT_DIR/" touch "$OUTPUT_DIR/.nojekyll" -cp "$REPO_DIR/versions.html" "$OUTPUT_DIR/versions.html" echo "=== Done ===" du -sh "$OUTPUT_DIR" diff --git a/versions.html b/versions.html deleted file mode 100644 index efa4c55..0000000 --- a/versions.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - Redirecting... - - -

Redirecting to /versions...

- -