docs(Diagrams): Update mermaid import mechanism (#1967)

This commit is contained in:
Sidharth Vinod authored and GitHub committed 2023-03-17 08:29:24 -07:00
1 parent 4aceb68551
commit 1b11dcd5c5
1 file changed
+2 -2
+2 -2
View File
@@ -58,8 +58,8 @@ And then include this snippet at the bottom of the content template (**Note**: b
```go-html-template
{{ if .Page.Store.Get "hasMermaid" }}
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script>
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
{{ end }}