Skip to content

Commit

Permalink
patch mdbook 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbr committed May 28, 2024
1 parent 1c51aa6 commit 3a09a6b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/run_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,16 @@ jobs:
with:
expression: ".#docs"

- name: Patch 404.html 🩹
run: |
cp -r ${{ steps.build.outputs.derivation }}/. dist
chmod -R +w dist
sed -i 's|<base href="/">|<base href="/NixOS-WSL">|' dist/404.html
- name: Upload documentation 📥
uses: actions/upload-pages-artifact@v3
with:
path: ${{ steps.build.outputs.derivation }}
path: dist

- name: Deploy to GitHub Pages 🚀
if: github.ref == 'refs/heads/main'
Expand Down

0 comments on commit 3a09a6b

Please sign in to comment.