Skip to content

Commit 3a09a6b

Browse files
committed
patch mdbook 404 page
1 parent 1c51aa6 commit 3a09a6b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/run_docs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,16 @@ jobs:
3131
with:
3232
expression: ".#docs"
3333

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

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

0 commit comments

Comments
 (0)