Automatically detect MermaidJS shortcode
Rather than requiring metadata set in a page's front matter, automatically detect when detect when a page relies on MermaidJS.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
---
|
||||
title: Docs smoke test page
|
||||
main_menu: false
|
||||
mermaid: true
|
||||
---
|
||||
|
||||
This page serves two purposes:
|
||||
@@ -297,7 +296,8 @@ tables, use HTML instead.
|
||||
|
||||
## Visualizations with Mermaid
|
||||
|
||||
Add `mermaid: true` to the [front matter](https://gohugo.io/content-management/front-matter/) of any page to enable [Mermaid JS](https://mermaidjs.github.io) visualizations. The Mermaid JS version is specified in [/layouts/partials/head.html](https://github.com/kubernetes/website/blob/master/layouts/partials/head.html)
|
||||
You can use [Mermaid JS](https://mermaidjs.github.io) visualizations.
|
||||
The Mermaid JS version is specified in [/layouts/partials/head.html](https://github.com/kubernetes/website/blob/master/layouts/partials/head.html)
|
||||
|
||||
```
|
||||
{{</* mermaid */>}}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
title: Using Source IP
|
||||
content_type: tutorial
|
||||
mermaid: true
|
||||
min-kubernetes-server-version: v1.5
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user