mirror of
https://github.com/distribution/distribution.git
synced 2025-09-12 21:28:59 +00:00
docs: add hugo site
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
11
docs/themes/hugo-geekdoc/layouts/shortcodes/mermaid.html
vendored
Normal file
11
docs/themes/hugo-geekdoc/layouts/shortcodes/mermaid.html
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<!-- prettier-ignore-start -->
|
||||
{{ if not (.Page.Scratch.Get "mermaid") }}
|
||||
<!-- Include mermaid only first time -->
|
||||
<script defer src="{{ index (index .Site.Data.assets "mermaid.js") "src" | relURL }}"></script>
|
||||
{{ .Page.Scratch.Set "mermaid" true }}
|
||||
{{ end }}
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
<pre class="gdoc-mermaid mermaid{{ with .Get "class" }}{{ printf " %s" . }}{{ end }}">
|
||||
{{- .Inner -}}
|
||||
</pre>
|
Reference in New Issue
Block a user