1
0
mirror of https://github.com/docker/docs.git synced 2026-10-23 18:09:02 +03:00
Files
docs/layouts/_markup/render-codeblock-mermaid.html
Alexa Kristensen 196def55a1 docs: show owners managing orgs and companies (#26283)
Updates org and company index pages for content, removes screenshots to
replace with scalable mermaid.js diagrams

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-10-08 11:17:09 -05:00

35 lines
1002 B
HTML

{{- .Page.Store.Set "mermaid" true -}}
{{- $title := .Attributes.title -}}
{{- $caption := .Attributes.caption -}}
{{- if or $title $caption -}}
{{- $id := printf "mermaid-%s-%d" .Page.File.UniqueID .Ordinal -}}
<figure
class="my-4"
{{- with $title }} aria-labelledby="{{ $id }}-title"{{ end }}
{{- with $caption }} aria-describedby="{{ $id }}-caption"{{ end }}
>
{{- with $title }}
<p id="{{ $id }}-title" class="mb-2 text-center font-medium">
{{ . }}
</p>
{{- end }}
<pre
class="mermaid not-prose flex justify-center bg-transparent"
data-pagefind-ignore
>{{- $.Inner -}}</pre>
{{- with $caption }}
<figcaption
id="{{ $id }}-caption"
class="text-center text-gray-600 dark:text-gray-400"
>
{{ . }}
</figcaption>
{{- end }}
</figure>
{{- else -}}
<pre
class="mermaid not-prose my-4 flex justify-center bg-transparent"
data-pagefind-ignore
>{{- .Inner -}}</pre>
{{- end -}}