Skip to content

Commit

Permalink
Vendor in Mermaid v10 for frontmatter title support
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Oct 27, 2023
1 parent 197c985 commit 0fdbbee
Show file tree
Hide file tree
Showing 5 changed files with 1,655 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ electron/pub
/src/modules.ts
/build_config.yaml
/book
/mermaid*
/index.html
6 changes: 6 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 change: 1 addition & 0 deletions docs/mermaid/mermaid-init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mermaid.initialize({ startOnLoad:true });
1,648 changes: 1,648 additions & 0 deletions docs/mermaid/mermaid.min.js

Large diffs are not rendered by default.

0 comments on commit 0fdbbee

Please sign in to comment.