Skip to content

Commit

Permalink
mermaid: update to 11.1.0 #904
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed Sep 2, 2024
1 parent 215c65a commit 550a6ee
Show file tree
Hide file tree
Showing 3 changed files with 2,187 additions and 1,945 deletions.
2 changes: 2 additions & 0 deletions exampleSite/content/basics/migration/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ This document shows you what's new in the latest release and flags it with one o

- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The [`notice` shortcode](shortcodes/notice) has a new parameter `expanded` to make the content collapsible.

- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme has updated its Mermaid dependency to 11.1.0. This adds support for [packet](shortcodes/mermaid#packet) and [architecture](shortcodes/mermaid#architecture) diagrams.

---

## 6.2.0 (2024-08-26) {#620}
Expand Down
84 changes: 84 additions & 0 deletions exampleSite/content/shortcodes/mermaid.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -693,3 +693,87 @@ columns 1
C --> D
style B fill:#969,stroke:#333,stroke-width:4px
{{< /mermaid >}}

### Packet

````go
{{</* mermaid */>}}
---
title: "TCP Packet"
---
packet-beta
0-15: "Source Port"
16-31: "Destination Port"
32-63: "Sequence Number"
64-95: "Acknowledgment Number"
96-99: "Data Offset"
100-105: "Reserved"
106: "URG"
107: "ACK"
108: "PSH"
109: "RST"
110: "SYN"
111: "FIN"
112-127: "Window"
128-143: "Checksum"
144-159: "Urgent Pointer"
160-191: "(Options and Padding)"
192-255: "Data (variable length)"
{{</* /mermaid */>}}
````

{{< mermaid >}}
---
title: "TCP Packet"
---
packet-beta
0-15: "Source Port"
16-31: "Destination Port"
32-63: "Sequence Number"
64-95: "Acknowledgment Number"
96-99: "Data Offset"
100-105: "Reserved"
106: "URG"
107: "ACK"
108: "PSH"
109: "RST"
110: "SYN"
111: "FIN"
112-127: "Window"
128-143: "Checksum"
144-159: "Urgent Pointer"
160-191: "(Options and Padding)"
192-255: "Data (variable length)"
{{< /mermaid >}}

### Architecture

````go
{{</* mermaid */>}}
architecture-beta
group api(cloud)[API]

service db(database)[Database] in api
service disk1(disk)[Storage] in api
service disk2(disk)[Storage] in api
service server(server)[Server] in api

db:L -- R:server
disk1:T -- B:server
disk2:T -- B:db
{{</* /mermaid */>}}
````

{{< mermaid >}}
architecture-beta
group api(cloud)[API]

service db(database)[Database] in api
service disk1(disk)[Storage] in api
service disk2(disk)[Storage] in api
service server(server)[Server] in api

db:L -- R:server
disk1:T -- B:server
disk2:T -- B:db
{{< /mermaid >}}
4,046 changes: 2,101 additions & 1,945 deletions static/js/mermaid.min.js

Large diffs are not rendered by default.

0 comments on commit 550a6ee

Please sign in to comment.