Skip to content

Commit

Permalink
Move all doc pages outside of directories
Browse files Browse the repository at this point in the history
Avoids GitHub enforcing a trailing slash after their URLs,
which breaks "See Also" etc. links (fix #45)
  • Loading branch information
ISSOtm committed Dec 17, 2023
1 parent 2b7c9d1 commit ee95db6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Deploy to GitHub Pages
on:
push:
branches: [master]
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand Down Expand Up @@ -30,6 +31,13 @@ jobs:
run: |
yarn install --frozen-lockfile
yarn build
for version in build/docs/{v*,master}; do
for f in "$version"/*/index.html; do
[ -e "$f" ] || continue
mv -v "$f" "${f%/index.html}.html"
rmdir --ignore-fail-on-non-empty "${f%index.html}"
done
done
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
Expand Down

0 comments on commit ee95db6

Please sign in to comment.