https://github.com/mcclowes/mermaid-examples
https://github.com/mcclowes/mermaid-examples
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mcclowes/mermaid-examples
- Owner: mcclowes
- Created: 2022-08-25T11:44:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-27T13:39:14.000Z (over 3 years ago)
- Last Synced: 2025-02-15T11:29:41.410Z (11 months ago)
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mermaid-examples
Diagram examples
Testing in ReadMe here: https://docs.codat.io/docs/foo
## Default sequence diagram
```mermaid
sequenceDiagram
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
Alice-)John: See you later!
```
## Flow chart
```mermaid
graph TD;
subgraph Accounting
A[Accounting integrations]-->B{Skip?};
B-->C[Accounting consent];
C-->D[Accounting auth];
D-->E[Accounting success];
end
subgraph Banking
E-->F[Banking integrations]
B-->F
F-->G{Skip?};
G-->H[Banking consent];
H-->I[Banking auth];
I-->J[Banking success];
end
J-->K[Overview]
G-->K
```
# Diagrams.net
[](https://app.diagrams.net/#Hmcclowes/mermaid-examples/main/Untitled%20Diagram.drawio.svg)
# Other non-mermaid cool stuff
https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-diagrams
```geojson
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"id": 1,
"properties": {
"ID": 0
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-90,35],
[-90,30],
[-85,30],
[-85,35],
[-90,35]
]
]
}
}
]
}
```
```stl
solid cube_corner
facet normal 0.0 -1.0 0.0
outer loop
vertex 0.0 0.0 0.0
vertex 1.0 0.0 0.0
vertex 0.0 0.0 1.0
endloop
endfacet
facet normal 0.0 0.0 -1.0
outer loop
vertex 0.0 0.0 0.0
vertex 0.0 1.0 0.0
vertex 1.0 0.0 0.0
endloop
endfacet
facet normal -1.0 0.0 0.0
outer loop
vertex 0.0 0.0 0.0
vertex 0.0 0.0 1.0
vertex 0.0 1.0 0.0
endloop
endfacet
facet normal 0.577 0.577 0.577
outer loop
vertex 1.0 0.0 0.0
vertex 0.0 1.0 0.0
vertex 0.0 0.0 1.0
endloop
endfacet
endsolid
```