Skip to content

Commit

Permalink
Add mermaid theme color
Browse files Browse the repository at this point in the history
  • Loading branch information
sylhare committed May 19, 2022
1 parent 4ab54ef commit a97de02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ color_image: /assets/img/lineart.png # A bit transparent for
# More in the _data folder for share buttons, author and language
# For layout customization, go to the "_sass > base" folder, and check "_variables.scss"
katex: true # Enable if using math markup
mermaid: true # Enable mermaid-js for sequence and diagrams
mermaid: default # Enable mermaid-js for diagrams, use theme: base, forest, dark, default, neutral
google_analytics: # Tracking ID, e.g. "UA-000000-01"
cookie_consent: false # To respect the usage of cookies
color_theme: auto # auto, dark or light
Expand Down
5 changes: 4 additions & 1 deletion _includes/default/head.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@

<!-- Mermaid 9.1.1 -->
{% if site.mermaid %}
<script defer src="{{ '/assets/js/vendor/mermaid.min.js' | relative_url }}" onload="mermaid.initialize({startOnLoad:true});"></script>
<script defer src="{{ '/assets/js/vendor/mermaid.min.js' | relative_url }}" onload="mermaid.initialize({
startOnLoad:true,
theme: '{{ site.mermaid }}',
});"></script>
{% endif %}

<!-- Simple Jekyll Search 1.10.0 -->
Expand Down

0 comments on commit a97de02

Please sign in to comment.