Skip to content

Commit e2ab416

Browse files
committed
CI: just use the ./book directory for Pages
The previous approach did not work. It was meant to enable later combination of mdBook with Rustdoc. However, there is a hint: https://github.com/peaceiris/actions-gh-pages?tab=readme-ov-file#%EF%B8%8F-mdbook-rust > put `./target/doc/` to your `./book/src` dir before you `mdbook build` We will do that. Signed-off-by: Daniel Maslowski <[email protected]>
1 parent f0cb7c8 commit e2ab416

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,11 @@ jobs:
2626
mdbook-version: "0.5.0"
2727

2828
- name: Build
29-
run: |
30-
mdbook build
31-
mkdir pages
32-
mv book pages/
29+
run: mdbook build
3330

3431
- name: Deploy
3532
uses: peaceiris/actions-gh-pages@v4
3633
if: ${{ github.ref == 'refs/heads/main' }}
3734
with:
3835
github_token: ${{ secrets.GITHUB_TOKEN }}
39-
publish_dir: ./pages
36+
publish_dir: ./book

book.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ title = "intel_fw"
55

66
[output.html]
77
git-repository-url = "https://github.com/platform-system-interface/intel_fw"
8-
site-url = "/book/"

0 commit comments

Comments
 (0)