mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-18 07:22:08 +03:00
Vendor in Mermaid v10 for frontmatter title support
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
197c985332
commit
0fdbbeecf5
5 changed files with 1655 additions and 2 deletions
1
.github/workflows/docs.yml
vendored
1
.github/workflows/docs.yml
vendored
|
@ -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
1
.gitignore
vendored
|
@ -28,5 +28,4 @@ electron/pub
|
|||
/src/modules.ts
|
||||
/build_config.yaml
|
||||
/book
|
||||
/mermaid*
|
||||
/index.html
|
||||
|
|
|
@ -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"
|
||||
|
|
1
docs/mermaid/mermaid-init.js
Normal file
1
docs/mermaid/mermaid-init.js
Normal file
|
@ -0,0 +1 @@
|
|||
mermaid.initialize({ startOnLoad:true });
|
1648
docs/mermaid/mermaid.min.js
vendored
Normal file
1648
docs/mermaid/mermaid.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue