File tree Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1616 env :
1717 MDBOOK_VERSION : 0.4.12
1818 MDBOOK_LINKCHECK_VERSION : 0.7.2
19+ MDBOOK_MERMAID_VERSION : 0.10.0
1920 MDBOOK_TOC_VERSION : 0.6.1
2021 DEPLOY_DIR : book/html
2122 BASE_SHA : ${{ github.event.pull_request.base.sha }}
3132 with :
3233 path : |
3334 ~/.cargo/bin
34- key : ${{ runner.os }}-${{ env.MDBOOK_VERSION }}--${{ env.MDBOOK_LINKCHECK_VERSION }}--${{ env.MDBOOK_TOC_VERSION }}
35+ key : ${{ runner.os }}-${{ env.MDBOOK_VERSION }}--${{ env.MDBOOK_LINKCHECK_VERSION }}--${{ env.MDBOOK_TOC_VERSION }}--${{ env.MDBOOK_MERMAID_VERSION }}
3536
3637 - name : Cache linkcheck
3738 uses : actions/cache@v2
5960 cargo install mdbook --version ${{ env.MDBOOK_VERSION }}
6061 cargo install mdbook-linkcheck --version ${{ env.MDBOOK_LINKCHECK_VERSION }}
6162 cargo install mdbook-toc --version ${{ env.MDBOOK_TOC_VERSION }}
63+ cargo install mdbook-mermaid --version ${{ env.MDBOOK_MERMAID_VERSION }}
6264
6365 - name : Check build
6466 run : mdbook build
Original file line number Diff line number Diff line change @@ -10,9 +10,13 @@ create-missing = false
1010command = " mdbook-toc"
1111renderer = [" html" ]
1212
13+ [preprocessor .mermaid ]
14+ command = " mdbook-mermaid"
15+
1316[output .html ]
1417git-repository-url = " https://github.com/rust-lang/rustc-dev-guide"
1518edit-url-template = " https://github.com/rust-lang/rustc-dev-guide/tree/master/{path}?mode=edit"
19+ additional-js = [" mermaid.min.js" , " mermaid-init.js" ]
1620
1721[output .html .fold ]
1822enable = true
Original file line number Diff line number Diff line change 1+ mermaid . initialize ( { startOnLoad :true } ) ;
You can’t perform that action at this time.
0 commit comments