mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-24 09:49:46 +02:00
chore: address review comments related to documentation
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
@@ -20,14 +20,20 @@ This page lists the available layout algorithms supported in Mermaid diagrams.
|
|||||||
You can specify the layout in your diagram's YAML config or initialization options. For example:
|
You can specify the layout in your diagram's YAML config or initialization options. For example:
|
||||||
|
|
||||||
```mermaid-example
|
```mermaid-example
|
||||||
%%{init: { 'layout': 'elk' }}%%
|
---
|
||||||
|
config:
|
||||||
|
layout: elk
|
||||||
|
---
|
||||||
graph TD;
|
graph TD;
|
||||||
A-->B;
|
A-->B;
|
||||||
B-->C;
|
B-->C;
|
||||||
```
|
```
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
%%{init: { 'layout': 'elk' }}%%
|
---
|
||||||
|
config:
|
||||||
|
layout: elk
|
||||||
|
---
|
||||||
graph TD;
|
graph TD;
|
||||||
A-->B;
|
A-->B;
|
||||||
B-->C;
|
B-->C;
|
||||||
|
@@ -16,7 +16,7 @@ The **tidy-tree** layout arranges nodes in a hierarchical, tree-like structure.
|
|||||||
|
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
```
|
```mermaid-example
|
||||||
---
|
---
|
||||||
config:
|
config:
|
||||||
layout: tidy-tree
|
layout: tidy-tree
|
||||||
@@ -29,29 +29,59 @@ root((mindmap is a long thing))
|
|||||||
D
|
D
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
---
|
||||||
|
config:
|
||||||
|
layout: tidy-tree
|
||||||
|
---
|
||||||
|
mindmap
|
||||||
|
root((mindmap is a long thing))
|
||||||
|
A
|
||||||
|
B
|
||||||
|
C
|
||||||
|
D
|
||||||
```
|
```
|
||||||
---
|
|
||||||
config:
|
```mermaid-example
|
||||||
layout: tidy-tree
|
---
|
||||||
---
|
config:
|
||||||
mindmap
|
layout: tidy-tree
|
||||||
root((mindmap))
|
---
|
||||||
Origins
|
mindmap
|
||||||
Long history
|
root((mindmap))
|
||||||
::icon(fa fa-book)
|
Origins
|
||||||
Popularisation
|
Long history
|
||||||
British popular psychology author Tony Buzan
|
::icon(fa fa-book)
|
||||||
Research
|
Popularisation
|
||||||
On effectiveness<br/>and features
|
British popular psychology author Tony Buzan
|
||||||
On Automatic creation
|
Research
|
||||||
Uses
|
On effectiveness<br/>and features
|
||||||
Creative techniques
|
On Automatic creation
|
||||||
Strategic planning
|
Uses
|
||||||
Argument mapping
|
Creative techniques
|
||||||
Tools
|
Strategic planning
|
||||||
id)I am a cloud(
|
Argument mapping
|
||||||
id))I am a bang((
|
```
|
||||||
Tools
|
|
||||||
|
```mermaid
|
||||||
|
---
|
||||||
|
config:
|
||||||
|
layout: tidy-tree
|
||||||
|
---
|
||||||
|
mindmap
|
||||||
|
root((mindmap))
|
||||||
|
Origins
|
||||||
|
Long history
|
||||||
|
::icon(fa fa-book)
|
||||||
|
Popularisation
|
||||||
|
British popular psychology author Tony Buzan
|
||||||
|
Research
|
||||||
|
On effectiveness<br/>and features
|
||||||
|
On Automatic creation
|
||||||
|
Uses
|
||||||
|
Creative techniques
|
||||||
|
Strategic planning
|
||||||
|
Argument mapping
|
||||||
```
|
```
|
||||||
|
|
||||||
## Note
|
## Note
|
||||||
|
@@ -14,7 +14,10 @@ This page lists the available layout algorithms supported in Mermaid diagrams.
|
|||||||
You can specify the layout in your diagram's YAML config or initialization options. For example:
|
You can specify the layout in your diagram's YAML config or initialization options. For example:
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
%%{init: { 'layout': 'elk' }}%%
|
---
|
||||||
|
config:
|
||||||
|
layout: elk
|
||||||
|
---
|
||||||
graph TD;
|
graph TD;
|
||||||
A-->B;
|
A-->B;
|
||||||
B-->C;
|
B-->C;
|
||||||
|
@@ -10,7 +10,7 @@ The **tidy-tree** layout arranges nodes in a hierarchical, tree-like structure.
|
|||||||
|
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
```
|
```mermaid-example
|
||||||
---
|
---
|
||||||
config:
|
config:
|
||||||
layout: tidy-tree
|
layout: tidy-tree
|
||||||
@@ -23,29 +23,25 @@ root((mindmap is a long thing))
|
|||||||
D
|
D
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```mermaid-example
|
||||||
---
|
---
|
||||||
config:
|
config:
|
||||||
layout: tidy-tree
|
layout: tidy-tree
|
||||||
---
|
---
|
||||||
mindmap
|
mindmap
|
||||||
root((mindmap))
|
root((mindmap))
|
||||||
Origins
|
Origins
|
||||||
Long history
|
Long history
|
||||||
::icon(fa fa-book)
|
::icon(fa fa-book)
|
||||||
Popularisation
|
Popularisation
|
||||||
British popular psychology author Tony Buzan
|
British popular psychology author Tony Buzan
|
||||||
Research
|
Research
|
||||||
On effectiveness<br/>and features
|
On effectiveness<br/>and features
|
||||||
On Automatic creation
|
On Automatic creation
|
||||||
Uses
|
Uses
|
||||||
Creative techniques
|
Creative techniques
|
||||||
Strategic planning
|
Strategic planning
|
||||||
Argument mapping
|
Argument mapping
|
||||||
Tools
|
|
||||||
id)I am a cloud(
|
|
||||||
id))I am a bang((
|
|
||||||
Tools
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Note
|
## Note
|
||||||
|
Reference in New Issue
Block a user