Skip to content

Commit 79ddba7

Browse files
jeffabaileyclaude
andcommitted
fix: remove nested html/ from mdBook output before deploy
The mdBook [output.html] config creates a book/html/ subdirectory that was being deployed alongside the site, causing gh-pages:docs/ to contain html/ instead of the site files directly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1d086f2 commit 79ddba7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/mdbook.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ jobs:
7474
- name: Build with mdBook
7575
run: ${{ env.CARGO_HOME }}/bin/mdbook build
7676

77+
- name: Remove nested html output
78+
run: rm -rf ./book/html
79+
7780
- name: Deploy to GitHub Pages
7881
uses: JamesIves/github-pages-deploy-action@v4
7982
with:
@@ -148,6 +151,10 @@ jobs:
148151
if: github.event.action != 'closed'
149152
run: ${{ env.CARGO_HOME }}/bin/mdbook build
150153

154+
- name: Remove nested html output
155+
if: github.event.action != 'closed'
156+
run: rm -rf ./book/html
157+
151158
- name: Deploy PR preview
152159
uses: rossjrw/pr-preview-action@v1
153160
with:

0 commit comments

Comments
 (0)