29 lines
626 B
Plaintext
29 lines
626 B
Plaintext
|
<% if (theme.plugins.mermaid.enable) { %>
|
||
|
<script type="text/javascript" src="<%- theme.plugins.mermaid.js %>"></script>
|
||
|
|
||
|
<script>
|
||
|
var mermaid_config = {
|
||
|
startOnLoad: true,
|
||
|
theme: '<%- theme.plugins.mermaid.theme %>',
|
||
|
logLevel: 3,
|
||
|
themeVariables: {
|
||
|
darkMode: true
|
||
|
},
|
||
|
flowchart: {
|
||
|
useMaxWidth: false,
|
||
|
htmlLabels: true,
|
||
|
curve: 'linear'
|
||
|
},
|
||
|
gantt: {
|
||
|
axisFormat: '%m/%d/%Y'
|
||
|
},
|
||
|
sequence: {
|
||
|
actorMargin: 50
|
||
|
}
|
||
|
}
|
||
|
if (window.mermaid) {
|
||
|
mermaid.initialize(mermaid_config);
|
||
|
}
|
||
|
</script>
|
||
|
<% } %>
|