install mdbook
This commit is contained in:
parent
8b6f78f546
commit
e089d76fc8
1 changed files with 16 additions and 5 deletions
21
.github/workflows/doc.yml
vendored
21
.github/workflows/doc.yml
vendored
|
@ -7,17 +7,28 @@ jobs:
|
||||||
name: Rust project
|
name: Rust project
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: checkout
|
||||||
- uses: actions-rs/toolchain@v1
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: rust
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
- run: |
|
|
||||||
cargo install mdbook
|
- name: mdbook
|
||||||
|
uses: peaceiris/actions-mdbook@v1
|
||||||
|
with:
|
||||||
|
mdbook-version: 'latest'
|
||||||
|
|
||||||
|
- name: build mdbook
|
||||||
|
run: |
|
||||||
mdbook build docs -d $(pwd)/public
|
mdbook build docs -d $(pwd)/public
|
||||||
|
|
||||||
cargo test
|
- name: build api docs
|
||||||
|
run: |
|
||||||
cargo doc --workspace --no-deps
|
cargo doc --workspace --no-deps
|
||||||
cp -r target/doc public/api
|
cp -r target/doc public/api
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
uses: JamesIves/github-pages-deploy-action@4.0.0
|
uses: JamesIves/github-pages-deploy-action@4.0.0
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue