Skip to content

Commit

Permalink
docs: add mermaid preprocessor
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Dec 6, 2023
1 parent 5cdc263 commit 8ad0c6f
Show file tree
Hide file tree
Showing 3 changed files with 1,287 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ preferred-dark-theme = "navy"
git-repository-url = "https://github.com/onedr0p/home-ops"
git-repository-icon = "fa-github"
no-section-label = true
additional-js = ["mermaid.min.js", "mermaid-init.js"]
additional-css = ["././mdbook-admonish.css", "./mdbook-admonish.css"]
git-branch = "main"
open-on-text = "[Edit this page on GitHub]"
Expand Down Expand Up @@ -40,3 +41,6 @@ renderer = [ "html" ]

[preprocessor.emojicodes]
after = [ "links" ]

[preprocessor.mermaid]
command = "mdbook-mermaid"
1 change: 1 addition & 0 deletions docs/mermaid-init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mermaid.initialize({startOnLoad:true});
1,282 changes: 1,282 additions & 0 deletions docs/mermaid.min.js

Large diffs are not rendered by default.

0 comments on commit 8ad0c6f

Please sign in to comment.