Skip to content

Commit 03f40a3

Browse files
EvolveArtclaude
andcommitted
fix: deploy correct mdbook output directory (book/html)
The workflow was deploying ./book which doesn't contain index.html. mdBook generates HTML files in ./book/html/ by default. This fixes the 404 error on GitHub Pages. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 7820646 commit 03f40a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ jobs:
4040
run: mdbook build
4141

4242
- name: Add .nojekyll
43-
run: touch book/.nojekyll
44-
43+
run: touch book/html/.nojekyll
44+
4545
- name: Deploy to GitHub Pages
4646
uses: peaceiris/actions-gh-pages@v3
4747
if: github.ref == 'refs/heads/main'
4848
with:
4949
github_token: ${{ secrets.GITHUB_TOKEN }}
50-
publish_dir: ./book
50+
publish_dir: ./book/html
5151

0 commit comments

Comments
 (0)