Vendor in Mermaid v10 for frontmatter title support

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/26461/head
Michael Telatynski 2023-10-27 15:34:45 +01:00
parent 197c985332
commit 0fdbbeecf5
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D
5 changed files with 1655 additions and 2 deletions

View File

@ -93,7 +93,6 @@ jobs:
cat SUMMARY.md >> docs/SUMMARY.md
mv element-web/book.toml .
mdbook-mermaid install .
- name: Build docs
run: mdbook build

1
.gitignore vendored
View File

@ -28,5 +28,4 @@ electron/pub
/src/modules.ts
/build_config.yaml
/book
/mermaid*
/index.html

View File

@ -24,3 +24,9 @@ git-repository-url = "https://github.com/vector-im/element-web"
# The path that the docs are hosted on
site-url = "/element-web/"
additional-js = ["docs/mermaid/mermaid.min.js", "docs/mermaid/mermaid-init.js"]
[preprocessor]
[preprocessor.mermaid]
command = "mdbook-mermaid"

View File

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

1648
docs/mermaid/mermaid.min.js vendored Normal file

File diff suppressed because one or more lines are too long