Add Mermaid as bundled dependency

This commit is contained in:
James Panther
2021-10-28 12:39:34 +11:00
parent 14a6aba0b5
commit acbcfacd6f
7 changed files with 1675 additions and 15 deletions
-8
View File
@@ -41,11 +41,3 @@
{{ partialCached "extend-footer.html" . }}
{{ end }}
</footer>
{{/* Include mermaid.js only on pages that use the shortcode */}}
{{- if .Page.HasShortcode "mermaid" -}}
<script src="https://unpkg.com/mermaid@8.13.3/dist/mermaid.min.js"></script>
<script>
mermaid.initialize({ theme: "default" });
</script>
{{- end -}}