mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-09-03 04:02:40 +00:00
Feat: add Mermaid config
This commit is contained in:
@@ -13,7 +13,6 @@ tags: ["shortcodes"]
|
||||
categories: ["documentation"]
|
||||
|
||||
hiddenFromHomePage: true
|
||||
repost: https://hugoloveit.com/theme-documentation-mermaid-shortcode/
|
||||
---
|
||||
|
||||
{{< version 0.2.15 changed >}}
|
||||
@@ -26,6 +25,10 @@ The `mermaid` shortcode supports diagrams in Hugo with [Mermaid](https://mermaid
|
||||
|
||||
Just insert your mermaid code in the `mermaid` shortcode and that’s it.
|
||||
|
||||
{{< admonition tip >}}
|
||||
You can configure mermaid themes globally in `config.toml` via the `params.mermaid` parameter
|
||||
{{< /admonition >}}
|
||||
|
||||
## Flowchart {#flowchart}
|
||||
|
||||
Example **flowchart** `mermaid` input:
|
||||
|
||||
@@ -13,7 +13,6 @@ tags: ["shortcodes"]
|
||||
categories: ["documentation"]
|
||||
|
||||
hiddenFromHomePage: true
|
||||
repost: https://hugoloveit.com/zh-cn/theme-documentation-mermaid-shortcode/
|
||||
---
|
||||
|
||||
{{< version 0.2.15 changed >}}
|
||||
@@ -26,6 +25,10 @@ repost: https://hugoloveit.com/zh-cn/theme-documentation-mermaid-shortcode/
|
||||
|
||||
只需将你的 mermaid 代码插入 `mermaid` shortcode 中即可.
|
||||
|
||||
{{< admonition tip >}}
|
||||
你可以在 `config.toml` 中通过 `params.mermaid` 参数全局配置 mermaid 的主题
|
||||
{{< /admonition >}}
|
||||
|
||||
## 流程图 {#flowchart}
|
||||
|
||||
一个 **流程图** `mermaid` 示例:
|
||||
|
||||
Reference in New Issue
Block a user