fix(doc): add support for Mermaid to render graphs (#4359)

This commit is contained in:
Conrado Gouvea 2022-05-09 17:29:49 -03:00 committed by GitHub
parent 228f16be50
commit a3eed2daad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 0 deletions

View File

@ -40,6 +40,7 @@ jobs:
- name: Install mdbook
run: |
cargo install mdbook
cargo install mdbook-mermaid
- name: Build Zebra book
run: |

View File

@ -4,3 +4,13 @@ language = "en"
multilingual = false
src = "src"
title = "The Zebra Book"
[preprocessor]
[preprocessor.mermaid]
command = "mdbook-mermaid"
[output]
[output.html]
additional-js = ["mermaid.min.js", "mermaid-init.js"]

1
book/mermaid-init.js Normal file
View File

@ -0,0 +1 @@
mermaid.initialize({startOnLoad:true});

4
book/mermaid.min.js vendored Normal file

File diff suppressed because one or more lines are too long