|
|
Line 8: |
Line 8: |
| 5c7:3 -- 变动后是第几行 | | 5c7:3 -- 变动后是第几行 |
|
| |
|
| }
| |
| </graphviz>
| |
|
| |
| <graphviz>
| |
| digraph G {
| |
| rankdir=TB;
| |
| node [shape=plaintext];
| |
|
| |
| "2" [label="2\nProud version\nBump when you are\nproud of the release", fontsize=14];
| |
| "7" [label="7\nDefault version\nJust normal/okay\nreleases", fontsize=14];
| |
| "123" [label="123\nShame version\nBump when fixing things\ntoo embarrassing to admit", fontsize=14];
| |
|
| |
| "Pride versioning" [shape=none, fontsize=18, label="Pride versioning"];
| |
|
| |
| "Pride versioning" -> "2";
| |
| "Pride versioning" -> "7";
| |
| "Pride versioning" -> "123";
| |
| }
| |
| </graphviz>
| |
|
| |
|
| |
| <graphviz>
| |
| digraph G {
| |
| rankdir=TB; // 设置方向为从上到下
| |
| node [shape=record, fontsize=14];
| |
|
| |
| // 定义 Pride versioning 的节点
| |
| title [shape=none, label="Pride versioning", fontsize=20, fontname="Helvetica-Bold"];
| |
|
| |
| // 定义版本号节点,使用 port 标记
| |
| version [label="{<proud> 2 | <default> 7 | <shame> 123}", fontsize=16, fontname="Helvetica"];
| |
|
| |
| // 定义解释文字节点
| |
| proud [shape=plaintext, label="Proud version\nBump when you are\nproud of the release"];
| |
| default [shape=plaintext, label="Default version\nJust normal/okay releases"];
| |
| shame [shape=plaintext, label="Shame version\nBump when fixing things\ntoo embarrassing to admit"];
| |
|
| |
| // 添加连接
| |
| title -> version;
| |
| version:proud -> proud [arrowhead=none]; // 连接 proud 部分
| |
| version:default -> default [arrowhead=none]; // 连接 default 部分
| |
| version:shame -> shame [arrowhead=none]; // 连接 shame 部分
| |
| } | | } |
| </graphviz> | | </graphviz> |