Skip to content

Commit

Permalink
refactor: embed our page into an iframe instead of doing a redirect (#…
Browse files Browse the repository at this point in the history
…3291)

* refactor: encapsulate our page into an iframe instead of doing a redirect

* Update build-gh-page.sh

* Update build-gh-page.sh
  • Loading branch information
mfranzke authored Oct 8, 2024
1 parent c2daaab commit 9d3c4ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/build-gh-page.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ tar -zxf gh-pages -C public --strip-components 1

if [[ $RELEASE == "true" ]]; then
echo "🔃 Change redirect"
echo "<meta http-equiv=\"refresh\" content=\"0; URL=https://"$OWNER_NAME".github.io/"$REPO_NAME"/version/"$NAME"\" />" > public/index.html
echo "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><title>DB UX Design System Core – latest version</title></head><body style=\"margin: 0;\"><iframe src=\"https://"$OWNER_NAME".github.io/"$REPO_NAME"/version/"$NAME"\" style=\"border: 0;width: 100vw;height: 100vh;\"></iframe></body></html>" > public/index.html
fi

echo "👣 Move out dir"
Expand Down

0 comments on commit 9d3c4ec

Please sign in to comment.