Skip to content

Commit

Permalink
chore: add mermaid
Browse files Browse the repository at this point in the history
  • Loading branch information
mcharytoniuk committed Jun 29, 2024
1 parent 60a87ca commit 296246c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/github_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,20 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: install mdbook mdbook-mermaid
run: cargo install --force mdbook mdbook-mermaid
- name: Check and install mdbook if not already installed
run: |
if ! cargo install --list | grep -q "mdbook v"; then
cargo install mdbook
else
echo "mdbook is already installed"
fi
- name: Check and install mdbook-mermaid if not already installed
run: |
if ! cargo install --list | grep -q "mdbook-mermaid v"; then
cargo install mdbook-mermaid
else
echo "mdbook-mermaid is already installed"
fi
- name: build book
run: make build
- name: Setup Pages
Expand Down

0 comments on commit 296246c

Please sign in to comment.