mirror of
https://github.com/aljazceru/pubky-core.git
synced 2026-01-06 15:54:19 +01:00
docs: add mdbook build to github actions
This commit is contained in:
18
.github/workflows/rust.yaml
vendored
18
.github/workflows/rust.yaml
vendored
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user