Skip to content

Commit

Permalink
docs: add mdbook build to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuhvi committed Sep 8, 2024
1 parent 2c37349 commit 1adf445
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,21 @@ jobs:

- name: Run docs
run: cargo doc --workspace --all-features --no-deps --document-private-items --verbose

- name: Install mdBook and mdBook-Mermaid
run: |
cargo install mdbook
cargo install mdbook-mermaid
mdbook-mermaid install ./docs/
- name: Cache mdBook build
id: cache-mdbook
uses: actions/cache@v3
with:
path: path/to/your/book/book-output
key: ${{ runner.os }}-mdbook-${{ hashFiles('path/to/your/book/**') }}
restore-keys: |
${{ runner.os }}-mdbook-
- name: Build the book
run: mdbook build /docs/

0 comments on commit 1adf445

Please sign in to comment.