mermaid: update to 11.1.0 #904

This commit is contained in:
Sören Weber 2024-09-02 17:48:55 +02:00
parent 215c65ae50
commit 550a6eeb92
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
3 changed files with 2207 additions and 1965 deletions

View file

@ -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 [`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} ## 6.2.0 (2024-08-26) {#620}

View file

@ -693,3 +693,87 @@ columns 1
C --> D C --> D
style B fill:#969,stroke:#333,stroke-width:4px style B fill:#969,stroke:#333,stroke-width:4px
{{< /mermaid >}} {{< /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 >}}

2350
static/js/mermaid.min.js vendored

File diff suppressed because one or more lines are too long