Skip to content

Commit

Permalink
Merge pull request #480 from sylhare/mermaid-update
Browse files Browse the repository at this point in the history
Update mermaid to v11.4.1
  • Loading branch information
sylhare authored Nov 28, 2024
2 parents a847f06 + 337068e commit dad5deb
Show file tree
Hide file tree
Showing 3 changed files with 1,302 additions and 720 deletions.
2 changes: 1 addition & 1 deletion _includes/default/head.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<script defer src="{{ '/assets/js/vendor/katex.auto-render.min.js' | relative_url }}" onload="renderMathInElement(document.body);"></script>
{% endif %}
<!-- Mermaid 10.8.0 -->
<!-- Mermaid 11.4.1 -->
{% if site.mermaid %}
<script defer src="{{ '/assets/js/vendor/mermaid.min.js' | relative_url }}"></script>
{% endif %}
Expand Down
27 changes: 27 additions & 0 deletions _posts/2016-12-03-Mermaid.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ sequenceDiagram
### Flow

```mermaid
%%{
init: {
'theme': 'base',
'themeVariables': {
'lineColor': '#F8B229'
}
}
}%%
flowchart TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
Expand All @@ -65,6 +74,15 @@ flowchart TD
### Class

```mermaid
%%{
init: {
'theme': 'base',
'themeVariables': {
'lineColor': '#F8B229'
}
}
}%%
classDiagram
Animal <|-- Duck
Animal <|-- Fish
Expand All @@ -91,6 +109,15 @@ classDiagram
### State

```mermaid
%%{
init: {
'theme': 'base',
'themeVariables': {
'lineColor': '#F8B229'
}
}
}%%
stateDiagram-v2
[*] --> Still
Still --> [*]
Expand Down
1,993 changes: 1,274 additions & 719 deletions assets/js/vendor/mermaid.min.js

Large diffs are not rendered by default.

0 comments on commit dad5deb

Please sign in to comment.