mirror of https://github.com/vector-im/riot-web
Vendor in Mermaid v10 for frontmatter title support
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/26461/head
parent
197c985332
commit
0fdbbeecf5
|
@ -93,7 +93,6 @@ jobs:
|
||||||
cat SUMMARY.md >> docs/SUMMARY.md
|
cat SUMMARY.md >> docs/SUMMARY.md
|
||||||
|
|
||||||
mv element-web/book.toml .
|
mv element-web/book.toml .
|
||||||
mdbook-mermaid install .
|
|
||||||
|
|
||||||
- name: Build docs
|
- name: Build docs
|
||||||
run: mdbook build
|
run: mdbook build
|
||||||
|
|
|
@ -28,5 +28,4 @@ electron/pub
|
||||||
/src/modules.ts
|
/src/modules.ts
|
||||||
/build_config.yaml
|
/build_config.yaml
|
||||||
/book
|
/book
|
||||||
/mermaid*
|
|
||||||
/index.html
|
/index.html
|
||||||
|
|
|
@ -24,3 +24,9 @@ git-repository-url = "https://github.com/vector-im/element-web"
|
||||||
|
|
||||||
# The path that the docs are hosted on
|
# The path that the docs are hosted on
|
||||||
site-url = "/element-web/"
|
site-url = "/element-web/"
|
||||||
|
additional-js = ["docs/mermaid/mermaid.min.js", "docs/mermaid/mermaid-init.js"]
|
||||||
|
|
||||||
|
[preprocessor]
|
||||||
|
|
||||||
|
[preprocessor.mermaid]
|
||||||
|
command = "mdbook-mermaid"
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
mermaid.initialize({ startOnLoad:true });
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue