layouts: add Mermaid support
All checks were successful
ci/woodpecker/push/deploy/2 Pipeline was successful
All checks were successful
ci/woodpecker/push/deploy/2 Pipeline was successful
Similar to Graphviz and TikZ support.
This commit is contained in:
parent
fc0479a1dc
commit
2118ba170f
3 changed files with 37 additions and 0 deletions
|
|
@ -20,6 +20,13 @@
|
|||
})();
|
||||
</script>
|
||||
{{ end }}
|
||||
<!-- Mermaid support -->
|
||||
{{ if (.Params.mermaid) }}
|
||||
<script type="module" async>
|
||||
import mermaid from "https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.esm.min.mjs";
|
||||
mermaid.initialize({ startOnLoad: true });
|
||||
</script>
|
||||
{{ end }}
|
||||
{{ with .OutputFormats.Get "atom" -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue