This commit is contained in:
NaBian committed 2019-04-10 22:28:09 +08:00
1 parent 16ef430a39
commit 792897291b
445 files changed
+30584 -5

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
{% if theme.mermaid.enable %}
<script>
if ($('body').find('pre.mermaid').length) {
$.ajax({
type: 'GET',
url: '{{ theme.mermaid.cdn }}',
dataType: 'script',
cache: true,
success: function() {
mermaid.initialize({
theme: '{{ theme.mermaid.theme }}',
logLevel: 3,
flowchart: { curve: 'linear' },
gantt: { axisFormat: '%m/%d/%Y' },
sequence: { actorMargin: 50 }
});
}
});
}
</script>
{% endif %}