Skip to content

Commit

Permalink
book/justfile:try cargo binstall first
Browse files Browse the repository at this point in the history
  • Loading branch information
RandyMcMillan committed Dec 7, 2024
1 parent 590dfdb commit 8dcff78
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions book/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@ default:
@just --list
# install book depends
init:
@mdbook --version || cargo install mdbook --version 0.4.40
@mdbook-linkcheck --version || cargo install mdbook-linkcheck --version 0.7.7
@mdbook-admonish --version || cargo install mdbook-admonish --version 1.15.0
@mdbook-snippets --version || cargo install --path ./snippets-processor
@mdbook --version || \
cargo binstall -y --force mdbook --version 0.4.40 || \
cargo install --force mdbook --version 0.4.40
@mdbook-linkcheck --version || \
cargo binstall -y --force mdbook-linkcheck --version 0.7.7 || \
cargo install --force mdbook-linkcheck --version 0.7.7
@mdbook-admonish --version || \
cargo binstall -y --force mdbook-admonish --version 1.15.0 || \
cargo install --force mdbook-admonish --version 1.15.0
@mdbook-snippets --version || \
cargo install --force --path ./snippets-processor

build: init
mdbook build
Expand Down

0 comments on commit 8dcff78

Please sign in to comment.