Skip to content

Commit

Permalink
mdbook-admonish
Browse files Browse the repository at this point in the history
  • Loading branch information
nihalxkumar committed Mar 26, 2024
1 parent 89ca67f commit c15efaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/mdbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@ jobs:
MDBOOK_VERSION: 0.4.36
steps:
- uses: actions/checkout@v4
- name: Install mdBook, mdbook-katext and mdbook-mermaid
- name: Install mdBook, mdbook-katext, mdbook-mermaid and mdbook-admonish
run: |
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
rustup update
cargo install --version ${MDBOOK_VERSION} mdbook
cargo install mdbook-katex
cargo install mdbook-mermaid
mdbook-mermaid install
cargo install mdbook-admonish
mdbook-admonish install
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
Expand Down
4 changes: 4 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ git-repository-url = "https://github.com/nihalxkumar/learnings-notebook"
git-repository-icon = "fa-github"
edit-url-template = "https://github.com/nihalxkumar/learnings-notebook/edit/main/{path}"
additional-js = ["mermaid.min.js", "mermaid-init.js"]
additional-css = ["mdbook-admonish.css"]

[output.html.search]
enable = true
Expand Down Expand Up @@ -48,3 +49,6 @@ after = ["links"]

[preprocessor.mermaid]
command = "mdbook-mermaid"

[preprocessor.admonish]
command = "mdbook-admonish"

0 comments on commit c15efaf

Please sign in to comment.