File tree Expand file tree Collapse file tree 1 file changed +6
-24
lines changed
Expand file tree Collapse file tree 1 file changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -13,34 +13,16 @@ jobs:
1313 - name : Checkout repository
1414 uses : actions/checkout@v3
1515
16- - name : Set up Rust (nightly) with docs
17- uses : actions-rs/toolchain@v1
16+ - name : Install mdBook
17+ uses : taiki-e/install-action@v2
1818 with :
19- toolchain : nightly
20- override : true
21- components : rust-docs
19+ tool : mdbook
2220
23- - name : Cache Cargo registry
24- uses : actions/cache@v3
25- with :
26- path : |
27- ~/.cargo/registry
28- ~/.cargo/git
29- key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
30-
31- - name : Cache target directory
32- uses : actions/cache@v3
33- with :
34- path : target
35- key : ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.lock') }}
36-
37- # - name: Generate Rust API documentation (docs-only workspace)
38- # run: |
39- # export RUSTDOCFLAGS="--cfg docsrs"
40- # cargo +nightly doc --no-deps --workspace --manifest-path .doc/Cargo.toml
21+ - name : Build mdBook
22+ run : mdbook build docs
4123
4224 - name : Deploy to GitHub Pages
4325 uses : peaceiris/actions-gh-pages@v3
4426 with :
4527 github_token : ${{ secrets.GITHUB_TOKEN }}
46- publish_dir : ./target/doc
28+ publish_dir : ./docs/book
You can’t perform that action at this time.
0 commit comments