File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,10 +18,16 @@ jobs:
1818 - name : Setup mdBook
1919 uses : peaceiris/actions-mdbook@v2
2020 with :
21- mdbook-version : ' 0.4.40 '
21+ mdbook-version : ' 0.4.48 '
2222 # mdbook-version: 'latest'
2323
24- - run : mdbook build
24+ - name : Install mdbook-mermaid
25+ run : |
26+ cargo install mdbook-mermaid
27+ mdbook-mermaid install
28+
29+ - name : Build
30+ run : mdbook build
2531
2632 - name : Deploy
2733 uses : peaceiris/actions-gh-pages@v3
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ ci/vale/styles/Microsoft/
66ci /vale /styles /proselint /
77ci /vale /styles /RedHat /
88ci /vale /styles /write-good /
9+ * .js
Original file line number Diff line number Diff line change 1+ build :
2+ mdbook build
3+
4+ run :
5+ mdbook serve
6+
7+ prepare :
8+ cargo install mdbook
9+ cargo install mdbook-mermaid
10+ mdbook-mermaid install
Original file line number Diff line number Diff line change @@ -15,6 +15,16 @@ This book is written with [mdBook](https://github.com/rust-lang/mdBook).
1515When installed, run ` mdbook serve ` and you will get a local webserver.
1616For more details, please refer to the mdBook documentation.
1717
18+ Some pages render diagrams using [ mermaid.js] ( https://mermaid.js.org/ ) , which is
19+ preprocessed with [ mdbook-mermaid] ( https://github.com/badboy/mdbook-mermaid ) .
20+
21+ For convenience, the ` Makefile ` lets you set up and run the environment:
22+
23+ ``` sh
24+ make prepare
25+ make run
26+ ```
27+
1828The book is linted with markdownlint and Vale. Follow the official
1929documentation to [ install
2030markdownlint] ( https://github.com/markdownlint/markdownlint?tab=readme-ov-file#installation )
Original file line number Diff line number Diff line change @@ -8,3 +8,9 @@ title = "LinuxBoot"
88[output .html ]
99cname = " book.linuxboot.org"
1010git-repository-url = " https://github.com/linuxboot/book"
11+ additional-js = [" mermaid.min.js" , " mermaid-init.js" ]
12+
13+ [preprocessor ]
14+
15+ [preprocessor .mermaid ]
16+ command = " mdbook-mermaid"
You can’t perform that action at this time.
0 commit comments