mirror of https://github.com/docker/docs.git
add support for mermaid diagrams (#17213)
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
4d4a7352d1
commit
6e3509f682
|
|
@ -76,6 +76,8 @@
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- include analytics/feedback.html -%}
|
{%- include analytics/feedback.html -%}
|
||||||
|
|
||||||
|
{% include mermaid.html %}
|
||||||
|
|
||||||
{%- comment -%}
|
{%- comment -%}
|
||||||
preload fonts: https://www.freecodecamp.org/news/web-fonts-in-2018-f191a48367e8/
|
preload fonts: https://www.freecodecamp.org/news/web-fonts-in-2018-f191a48367e8/
|
||||||
we only preload the "woff2" variants, as older formats (woff, eot) are only used
|
we only preload the "woff2" variants, as older formats (woff, eot) are only used
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
<script type="module">
|
||||||
|
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
|
||||||
|
mermaid.initialize({ startOnLoad: false });
|
||||||
|
await mermaid.run({
|
||||||
|
querySelector: '.language-mermaid',
|
||||||
|
});
|
||||||
|
</script>
|
||||||
Loading…
Reference in New Issue