Skip to content

Commit 3f2c566

Browse files
committed
test api docs
1 parent 6b9cb11 commit 3f2c566

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/generate-docs.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ jobs:
1313
- name: Checkout repository
1414
uses: actions/checkout@v3
1515

16+
- name: Install Rust
17+
uses: actions-rs/toolchain@v1
18+
with:
19+
toolchain: stable
20+
override: true
21+
1622
- name: Install mdBook
1723
uses: taiki-e/install-action@v2
1824
with:
@@ -21,6 +27,12 @@ jobs:
2127
- name: Build mdBook
2228
run: mdbook build docs
2329

30+
- name: Build Rust API Docs (with --no-run)
31+
run: cargo doc --workspace --no-deps --all-features -- --no-run
32+
33+
- name: Copy Rust API Docs into mdBook output
34+
run: cp -r target/doc ./docs/book/api
35+
2436
- name: Deploy to GitHub Pages
2537
uses: peaceiris/actions-gh-pages@v3
2638
with:

0 commit comments

Comments
 (0)