Skip to content

Commit

Permalink
Add a comment to explain why we add a script
Browse files Browse the repository at this point in the history
  • Loading branch information
sfauvel committed Jul 31, 2024
1 parent d2e8b8c commit cd369d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,7 @@ jobs:
run: |
echo "mithril.network" > ./github-pages/CNAME
echo '<!DOCTYPE html><html><head><meta http-equiv="Refresh" content="0; URL=https://mithril.network/doc"></head></html>' > ./github-pages/index.html
# Remove the index.html from the url to avoid a display issue that duplicates the content of the page
sed -i '1s/^/<script type="text/javascript"> if (window.location.href.endsWith("/index.html")) { end_of_clean_url = window.location.href.lastIndexOf("/"); window.location.href = window.location.href.substring(0, end_of_clean_url); } </script>\n/' ./github-pages/doc/index.html
- name: Mithril / Publish GitHub Pages
Expand Down

0 comments on commit cd369d0

Please sign in to comment.