- Red
- Green
- Blue
- Red
- Green
- Blue
- Red
- Green
- Blue
1. Red
2. Green
3. Blue
- Task A
- Task B
- Task C
- [x] Task A
- [ ] Task B
- [ ] Task C
這是引言
> 這是引言
程式碼區塊
```
程式碼區塊
```
***
---
這邊示範註腳1
[^註腳1]
[^註腳1]:請寫下註腳的描述
參考連結 google
[google][1]
[1]: http://www.google.com "Google"
ID | NAME | Desc |
---|---|---|
A123456789 | Lanka Hsu | Boss |
A888888888 | Mary | Wife |
Markdown 語法是不支援合併,只能使用 html
id | h1 | h2 | h3 |
---|---|---|---|
r1 | r1,h1-2 | r1-2,h3 | |
r2 | |||
r3 | r3-4,h1-2 | ||
r4 |
粗體
**粗體**
斜體
*斜體*
底線
<u>底線</u>
程式碼
`程式碼`
刪除線
~~刪除線~~
<!--註解-->
超連結
[HelperX](https://github.com/lankahsu520/HelperX)
![macOS_12_Monterey](./images/macOS_12_Monterey.png)
[<img src="./images/macOS_12_Monterey.png" width="512"/>](macOS_12_Monterey.png)
<img src="./images/macOS_12_Monterey.png" height="50%" width="50%">
span text - blue, red, green, blue, red, green
span text - <span style="color:blue">blue</span>, <span style="color:red">red</span>, <span style="color:green">green</span>, <span style="background-color:blue">blue</span>, <span style="background-color:red">red</span>, <span style="background-color:green">green</span>
font text - blue, red, green, blue, red, green
font text - <font color="blue">blue</font>, <font color="red">red</font>, <font color="green">green</font>, <font style="background-color:blue">blue</font>, <font style="background-color:red">red</font>, <font style="background-color:green">green</font>
code text -
blue
,red
,green
,blue
,red
,green
code text - <code style="color:blue">blue</code >, <code style="color:red">red</code >, <code style="color:green">green</code>, <code style="background-color:blue">blue</code>, <code style="background-color:red">red</code>, <code style="background-color:green">green</code>
4. 特殊特元
AT&(T)
AT&(T)
4 < 5
4 < 5
©
©
5. Mermaid
gantt
title A Gantt Diagram (2023-03-29)
%%dateFormat HH:mm
%%axisFormat %H:%M
%%tickInterval 1h
dateFormat YYYY-MM-DD
axisFormat %-m/%-d
tickInterval 1day
%% (`excludes` accepts specific dates in YYYY-MM-DD format, days of the week ("sunday") or "weekends", but not the word "weekdays".)
excludes weekends saturday,sunday, 2023-02-27, 2023-02-28
excludes weekends saturday,sunday, 2023-04-03, 2023-04-04, 2023-04-05
excludes weekends saturday,sunday, 2023-05-01
section SPEC
read spec1 (crit/done): crit, done, spec1, 2023-03-29, 2023-03-31
read spec2 (crit/active): crit, active, spec2, after spec1, 2d
read spec3 (crit/): crit, spec3, after spec2, 1d
report (milestone): milestone, active, SPEC-end, after spec3, 1d
section TODO
Todo A (/done): done, todo1, after SPEC-end, 3d
Todo B (/active): active, todo2, after SPEC-end, 2d
Todo C (/): todo3, after todo1 todo2, 48h
Todo B (/): todo4, after todo3, 96h
gantt
title A Gantt Diagram (2023-03-29)
%%dateFormat HH:mm
%%axisFormat %H:%M
%%tickInterval 1h
dateFormat YYYY-MM-DD
axisFormat %-m/%-d
tickInterval 1day
%% (`excludes` accepts specific dates in YYYY-MM-DD format, days of the week ("sunday") or "weekends", but not the word "weekdays".)
excludes weekends saturday,sunday, 2023-02-27, 2023-02-28
excludes weekends saturday,sunday, 2023-04-03, 2023-04-04, 2023-04-05
excludes weekends saturday,sunday, 2023-05-01
section SPEC
read spec1 (crit/done): crit, done, spec1, 2023-03-29, 2023-03-31
read spec2 (crit/active): crit, active, spec2, after spec1, 2d
read spec3 (crit/): crit, spec3, after spec2, 1d
report (milestone): milestone, active, SPEC-end, after spec3, 1d
section TODO
Todo A (/done): done, todo1, after SPEC-end, 3d
Todo B (/active): active, todo2, after SPEC-end, 2d
Todo C (/): todo3, after todo1 todo2, 48h
Todo B (/): todo4, after todo3, 96h
Please add "displayMode: compact"
---
displayMode: compact
---
gantt
title A Gantt Diagram (2023-03-29)
%%dateFormat HH:mm
%%axisFormat %H:%M
%%tickInterval 1h
dateFormat YYYY-MM-DD
axisFormat %-m/%-d
tickInterval 1day
%% (`excludes` accepts specific dates in YYYY-MM-DD format, days of the week ("sunday") or "weekends", but not the word "weekdays".)
excludes weekends saturday,sunday, 2023-02-27, 2023-02-28
excludes weekends saturday,sunday, 2023-04-03, 2023-04-04, 2023-04-05
excludes weekends saturday,sunday, 2023-05-01
section SPEC
read spec1 (crit/done): crit, done, spec1, 2023-03-29, 2023-03-31
read spec2 (crit/active): crit, active, spec2, after spec1, 2d
read spec3 (crit/): crit, spec3, after spec2, 1d
report (milestone): milestone, active, SPEC-end, after spec3, 1d
section TODO
Todo A (/done): done, todo1, after SPEC-end, 3d
Todo B (/active): active, todo2, after SPEC-end, 2d
Todo C (/): todo3, after todo1 todo2, 48h
Todo B (/): todo4, after todo3, 96h
gantt
title 成績
dateFormat X
axisFormat %s
section 天字班
lana : 0, 100
mary : 0, 100
section 放牛班
大雄 : 0, 0
技安 : 0, 16
阿福 : 0, 33
5.1.2. Input date format#
The default input date format is YYYY-MM-DD
. You can define your custom dateFormat
.
dateFormat YYYY-MM-DD
The following formatting options are supported:
Input Example Description:
YYYY 2014 4 digit year
YY 14 2 digit year
Q 1..4 Quarter of year. Sets month to first month in quarter.
M MM 1..12 Month number
MMM MMMM January..Dec Month name in locale set by moment.locale()
D DD 1..31 Day of month
Do 1st..31st Day of month with ordinal
DDD DDDD 1..365 Day of year
X 1410715640.579 Unix timestamp
x 1410715640579 Unix ms timestamp
H HH 0..23 24 hour time
h hh 1..12 12 hour time used with a A.
a A am pm Post or ante meridiem
m mm 0..59 Minutes
s ss 0..59 Seconds
S 0..9 Tenths of a second
SS 0..99 Hundreds of a second
SSS 0..999 Thousandths of a second
Z ZZ +12:00 Offset from UTC as +-HH:mm, +-HHmm, or Z
More info in: https://momentjs.com/docs/#/parsing/string-format/
5.1.3. Output date format on the axis#
The default output date format is YYYY-MM-DD
. You can define your custom axisFormat
, like 2020-Q1
for the first quarter of the year 2020.
axisFormat %Y-%m-%d
The following formatting strings are supported:
%a - abbreviated weekday name.
%A - full weekday name.
%b - abbreviated month name.
%B - full month name.
%c - date and time, as "%a %b %e %H:%M:%S %Y".
%d - zero-padded day of the month as a decimal number [01,31].
%e - space-padded day of the month as a decimal number [ 1,31]; equivalent to %_d.
%H - hour (24-hour clock) as a decimal number [00,23].
%I - hour (12-hour clock) as a decimal number [01,12].
%j - day of the year as a decimal number [001,366].
%m - month as a decimal number [01,12].
%M - minute as a decimal number [00,59].
%L - milliseconds as a decimal number [000, 999].
%p - either AM or PM.
%S - second as a decimal number [00,61].
%U - week number of the year (Sunday as the first day of the week) as a decimal number [00,53].
%w - weekday as a decimal number [0(Sunday),6].
%W - week number of the year (Monday as the first day of the week) as a decimal number [00,53].
%x - date, as "%m/%d/%Y".
%X - time, as "%H:%M:%S".
%y - year without century as a decimal number [00,99].
%Y - year with century as a decimal number.
%Z - time zone offset, such as "-0700".
%% - a literal "%" character.
More info in: https://github.com/d3/d3-time-format/tree/v4.0.0#locale_format
5.1.4. Axis ticks#
The default output ticks are auto. You can custom your tickInterval
, like 1day
or 1week
.
tickInterval 1day
The pattern is:
/^([1-9][0-9]*)(minute|hour|day|week|month)$/
More info in: https://github.com/d3/d3-time#interval_every
flowchart TD
%% TB - top to bottom
%% this is a comment; Start --> Process --> End
Start([起始點])
register{{註冊 signal}}
input[/輸入名稱/]
isboss{Is it the boss ?}
Process[程序]
Manual[\建立工作報告/]
Subroutine[[子程序]]
Database[(SQL)]
print[/print Hello Boss !!/]
AlternateProcess(替代流程 Plan B)
End([結束點])
Start-->|流程線|register-->input-->isboss-->|yes|print--> End
isboss-->|no|Process-->Subroutine-->Manual--> End
Subroutine-->Database
input ..-> AlternateProcess --> End
flowchart TD
%% TB - top to bottom
%% this is a comment; Start --> Process --> End
Start([起始點])
register{{註冊 signal}}
input[/輸入名稱/]
isboss{Is it the boss ?}
Process[程序]
Manual[\建立工作報告/]
Subroutine[[子程序]]
Database[(SQL)]
print[/print Hello Boss !!/]
AlternateProcess(替代流程 Plan B)
End([結束點])
Start-->|流程線|register-->input-->isboss-->|yes|print--> End
isboss-->|no|Process-->Subroutine-->Manual--> End
Subroutine-->Database
input ..-> AlternateProcess --> End
5.2.2. Flowchart Symbols Defined
以下引言取自於 https://www.breezetree.com/articles/excel-flowchart-shapes/
Show a Process or action step. This is the most common symbol in both process flowcharts and process maps.
flowchart TD
Process[程序]
Process[程序]
A Predefined Process symbol is a marker for another process step or series of process flow steps that are formally defined elsewhere. This shape commonly depicts sub-processes (or subroutines in programming flowcharts). If the sub-process is considered "known" but not actually defined in a process procedure, work instruction, or some other process flowchart or documentation, then it is best not to use this symbol since it implies a formally defined process.
flowchart TD
Subroutine[[子程序]]
Subroutine[[子程序]]
As the shape name suggests, this flowchart symbol is used when the process flow step is an alternate to the normal process step. Flow lines into an alternate process flow step are typically dashed.
flowchart TD
AlternateProcess(替代流程 Plan B)
AlternateProcess(替代流程 Plan B)
The Delay flowchart symbol depicts any waiting period that is part of a process. Delay shapes are common in process mapping.
As the names states, any process step that is a Preparation process flow step, such as a set-up operation.
前置作業,一般多為安裝、設定
flowchart TD
register{{註冊 signal}}
register{{註冊 signal}}
Manual Operations flowchart shapes show which process steps are not automated. In data processing flowcharts, this data flow shape indicates a looping operation along with a loop limit symbol (which is not supported by Microsoft Office, but a Manual Operation symbol rotated 180° will do the trick.)
非自動化,需人工參與
flowchart TD
Manual[\建立工作報告/]
Manual[\建立工作報告/]
Flow line connectors show the direction that the process flows.
flowchart LR
A-->B
A-->B
Terminators show the start and stop points in a process. When used as a Start symbol, terminators depict a trigger action that sets the process flow into motion.
flowchart TD
Start([起始點])
End([結束點])
Start([起始點])
End([結束點])
Indicates a question or branch in the process flow. Typically, a Decision flowchart shape is used when there are 2 options (Yes/No, No/No-Go, etc.)
flowchart TD
isboss{Is it the boss ?}
isboss{Is it the boss ?}
Flowchart: In flowcharts, this symbol is typically small and is used as a Connector to show a jump from one point in the process flow to another. Connectors are usually labeled with capital letters (A, B, AA) to show matching jump points. They are handy for avoiding flow lines that cross other shapes and flow lines. They are also handy for jumping to and from a sub-processes defined in a separate area than the main flowchart. Process Mapping: In process maps, this symbol is full sized and shows an Inspection point in the process flow.
[Just to confuse things further, some people will use a circle to indicate an operation and a square to indicate an inspection. That's why it's important to include a symbol key in the flowchart.]
flowchart TD
Connector((Connector))
# 這個跟預期的完全不同,暫不要使用
Connector((Connector))
Flow line connectors show the direction that the process flows.
flowchart LR
A-->|arrow head|B
C---|open link|D
E-.->|Dotted link|F
G ==>|Thick link|H
I -.-o J
K -.-x L
A-->|arrow head|B
C---|open link|D
E-.->|Dotted link|F
G==>|Thick link|H
I~~~J
I --o J
K --x L
flowchart LR
A o--o B
B <--> C
C x--x D
A o--o B
B <--> C
C x--x D
flowchart LR
A -- text --> B -- text2 --> C
a --> b & c--> d
A -- text --> B -- text2 --> C
a --> b & c--> d
flowchart LR
X & Y--> Z & W
A --> C
A --> D
B --> C
B --> D
X & Y--> Z & W
A --> C
A --> D
B --> C
B --> D
flowchart LR
subgraph aws
ec2
DynamoDB
end
subgraph pc
ssh
end
pc ---> |network|aws
ssh --> ec2 --> |aws cli|DynamoDB
flowchart LR
subgraph aws
ec2
DynamoDB
end
subgraph pc
ssh
end
pc ---> |network|aws
ssh --> ec2 --> |aws cli|DynamoDB
這功能還不是很完備,如果變成 C-->D就會失效。
flowchart TD
subgraph Z[" "]
direction LR
A --> B
B --> C
end
subgraph ZA[" "]
direction RL
D-->E
E-->F
end
Z --> ZA
flowchart TD
subgraph Z[" "]
direction LR
A --> B
B --> C
end
subgraph ZA[" "]
direction RL
D-->E
E-->F
end
Z --> ZA
flowchart TD
asymmetric>an asymmetric shape]
ParallelogramAlt[\Parallelogram alt\]
Trapezoid[/Trapezoid\]
Dcircle(((Double circle)))
asymmetric>an asymmetric shape]
ParallelogramAlt[\Parallelogram alt\]
Trapezoid[/Trapezoid\]
Dcircle(((Double circle)))
X. Interaction
這一部分,基本上不常用,也不應該用!
Flowchart 原本就是要表達某些順序、意圖等,不是要給大家來亙動的。
flowchart LR
A-->B
B-->C
C-->D
click A callback "Tooltip for a callback"
click B "https://www.github.com" "This is a tooltip for a link"
click C call callback() "Tooltip for a callback"
click D href "https://www.github.com" "This is a tooltip for a link"
flowchart LR
A-->B
B-->C
C-->D
click A callback "Tooltip for a callback"
click B "https://www.github.com" "This is a tooltip for a link"
click C call callback() "Tooltip for a callback"
click D href "https://www.github.com" "This is a tooltip for a link"
flowchart LR
A-->B
B-->C
C-->D
D-->E
click A "https://www.github.com" _blank
click B "https://www.github.com" "Open this in a new tab" _blank
click C href "https://www.github.com" _blank
click D href "https://www.github.com" "Open this in a new tab" _blank
flowchart LR
A-->B
B-->C
C-->D
D-->E
click A "https://www.github.com" _blank
click B "https://www.github.com" "Open this in a new tab" _blank
click C href "https://www.github.com" _blank
click D href "https://www.github.com" "Open this in a new tab" _blank
讓圖示的樣式有所改變
flowchart LR
id1(Start)-->id2(Stop)
style id1 fill:#f9f,stroke:#333,stroke-width:4px
style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
flowchart LR
id1(Start)-->id2(Stop)
style id1 fill:#f9f,stroke:#333,stroke-width:4px
style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
flowchart LR
A:::someclass --> B --> C
classDef default fill:#f3f,stroke:#333,stroke-width:4px;
classDef someclass fill:#f96
flowchart LR
A:::someclass --> B --> C
classDef default fill:#f3f,stroke:#333,stroke-width:4px;
classDef someclass fill:#f96
Y.3. Css classes
這部分,試不出有什麼效果
flowchart LR
A-->B[AAA<span>BBB</span>]
B-->D
class A cssClass
flowchart LR
A-->B[AAA<span>BBB</span>]
B-->D
class A cssClass
flowchart TD
B["fab:fa-twitter for peace"]
B-->C[fa:fa-ban forbidden]
B-->D(fa:fa-spinner)
B-->E(A fa:fa-camera-retro perhaps?)
flowchart TD
B["fab:fa-twitter for peace"]
B-->C[fa:fa-ban forbidden]
B-->D(fa:fa-spinner)
B-->E(A fa:fa-camera-retro perhaps?)
flowchart LR
White --> Silver --> Gray --> Black
Red --> Maroon --> Yellow --> Olive
Lime --> Green --> Aqua --> Teal
Blue --> Navy --> Fuchsia --> Purple
lightblue --> Orange --> Tomato --> SkyBlue
classDef default stroke:#333,stroke-width:4px
classDef White fill:#FFFFFF
classDef Silver fill:#C0C0C0
classDef Gray fill:#808080
classDef Black fill:#000000
classDef Red fill:#FF0000
classDef Maroon fill:#800000
classDef Yellow fill:#FFFF00
classDef Olive fill:#808000
classDef Lime fill:#00FF00
classDef Green fill:#008000
classDef Aqua fill:#00FFFF
classDef Teal fill:#008080
classDef Blue fill:#0000FF
classDef Navy fill:#000080
classDef Fuchsia fill:#FF00FF
classDef Purple fill:#800080
classDef lightblue fill:#ADD8E6
classDef Orange fill:#FFA500
classDef Tomato fill:#FF6347
classDef SkyBlue fill:#87CEEB
class White White
class Silver Silver
class Gray Gray
class Black Black
class Red Red
class Maroon Maroon
class Yellow Yellow
class Olive Olive
class Lime Lime
class Green Green
class Aqua Aqua
class Teal Teal
class Blue Blue
class Navy Navy
class Fuchsia Fuchsia
class Purple Purple
class lightblue lightblue
class Orange Orange
class Tomato Tomato
class SkyBlue SkyBlue
flowchart LR
White --> Silver --> Gray --> Black
Red --> Maroon --> Yellow --> Olive
Lime --> Green --> Aqua --> Teal
Blue --> Navy --> Fuchsia --> Purple
lightblue --> Orange --> Tomato --> SkyBlue
classDef default stroke:#333,stroke-width:4px
classDef White fill:#FFFFFF
classDef Silver fill:#C0C0C0
classDef Gray fill:#808080
classDef Black fill:#000000
classDef Red fill:#FF0000
classDef Maroon fill:#800000
classDef Yellow fill:#FFFF00
classDef Olive fill:#808000
classDef Lime fill:#00FF00
classDef Green fill:#008000
classDef Aqua fill:#00FFFF
classDef Teal fill:#008080
classDef Blue fill:#0000FF
classDef Navy fill:#000080
classDef Fuchsia fill:#FF00FF
classDef Purple fill:#800080
classDef lightblue fill:#ADD8E6
classDef Orange fill:#FFA500
classDef Tomato fill:#FF6347
classDef SkyBlue fill:#87CEEB
class White White
class Silver Silver
class Gray Gray
class Black Black
class Red Red
class Maroon Maroon
class Yellow Yellow
class Olive Olive
class Lime Lime
class Green Green
class Aqua Aqua
class Teal Teal
class Blue Blue
class Navy Navy
class Fuchsia Fuchsia
class Purple Purple
class lightblue lightblue
class Orange Orange
class Tomato Tomato
class SkyBlue SkyBlue
只是寫個文件,沒有必要去設定。
Possible FlowChart orientations are:
- TB - top to bottom
- TD - top-down/ same as top to bottom
- BT - bottom to top
- RL - right to left
- LR - left to right
sequenceDiagram
participant UAC as User Agent Client
participant RServer as Register/Redirect/Proxy Server
participant USER as User Database
UAC->>RServer: Register
RServer->>USER: Check
USER->>RServer: Ok
RServer->>UAC: SIP/2.0 200 OK
sequenceDiagram
participant UAC as User Agent Client
participant RServer as Register/Redirect/Proxy Server
participant USER as User Database
UAC->>RServer: Register
RServer->>USER: Check
USER->>RServer: Ok
RServer->>UAC: SIP/2.0 200 OK
sequenceDiagram
participant Phone
link Phone: github @ https://github.com/lankahsu520/HelperX
participant Light
link Light: {"github":"https://github.com/lankahsu520/HelperX"}
Phone->>Light: toggle
Light-)Phone: ack
sequenceDiagram
participant Phone
link Phone: github @ https://github.com/lankahsu520/HelperX
participant Light
link Light: {"github":"https://github.com/lankahsu520/HelperX"}
Phone->>Light: toggle
Light-)Phone: ack
Messages
[Actor][Arrow][Actor]:Message text
Actor Menus
link <actor>: <link-label> @ <link-url> links <actor>: <json-formatted link-name link-url pairs>
sequenceDiagram
participant A
participant B
A -> B: Solid line without arrow
A --> B: Dotted line without arrow
A ->> B: Solid line with arrowhead
A-->> B: Dotted line with arrowhead
A -x B: Solid line with a cross at the end
A --x B: Dotted line with a cross at the end
A -) B: Solid line with an open arrow at the end (async)
A --) B: Dotted line with a open arrow at the end (async)
sequenceDiagram
participant A
participant B
A -> B: Solid line without arrow
A --> B: Dotted line without arrow
A ->> B: Solid line with arrowhead
A-->> B: Dotted line with arrowhead
A -x B: Solid line with a cross at the end
A --x B: Dotted line with a cross at the end
A -) B: Solid line with an open arrow at the end (async)
A --) B: Dotted line with a open arrow at the end (async)
sequenceDiagram
participant Phone
participant Light
Phone->>Light: toggle
activate Light
Light-)Phone: ack
deactivate Light
Phone->>+Light: toggle
Light-)-Phone: ack
sequenceDiagram
participant Phone
participant Light
Phone->>Light: toggle
activate Light
Light-)Phone: ack
deactivate Light
Phone->>+Light: toggle
Light-)-Phone: ack
sequenceDiagram
participant Phone
participant Light
Phone->>+Light: setting
Phone->>+Light: toggle
Light-)-Phone: ack
Light-)-Phone: ack
sequenceDiagram
participant Phone
participant Light
Phone->>+Light: setting
Phone->>+Light: toggle
Light-)-Phone: ack
Light-)-Phone: ack
sequenceDiagram
Note over Phone, Light: ZigBee control
participant Phone
Note Left of Phone: Lanka's Phone
participant Light
Note Right of Light: Office Light
%% to toggle Light
rect rgb(255, 223, 255)
Phone->>+Light: toggle
Light-)-Phone: ack
end
sequenceDiagram
Note over Phone, Light: ZigBee control
participant Phone
Note Left of Phone: Lanka's Phone
participant Light
Note Right of Light: Office Light
%% to toggle Light
rect rgb(255, 223, 255)
Phone->>+Light: toggle
Light-)-Phone: ack
end
sequenceDiagram
participant Phone
participant Light
loop 3 times
Phone->>Light: toggle
Light-)Phone: ack
end
sequenceDiagram
participant Phone
participant Light
loop 3 times
Phone->>Light: toggle
Light-)Phone: ack
end
sequenceDiagram
participant Phone
participant Light
Phone->>Light: toggle
alt is alive
Light-)Phone: ack
else not alive
Phone->>Phone: timeout, Light is down
end
rect rgb(255, 223, 255)
opt others
Phone->>Phone: update status of Light
end
end
sequenceDiagram
participant Phone
participant Light
Phone->>Light: toggle
alt is alive
Light-)Phone: ack
else not alive
Phone->>Phone: timeout, Light is down
end
rect rgb(255, 223, 255)
opt others
Phone->>Phone: update status of Light
end
end
sequenceDiagram
participant Phone
participant Light1
participant Light2
par broadcast (Light1)
Phone->>Light1: toggle
and broadcast (Light2)
Phone->>Light2: toggle
end
Light2-)Phone: ack
Light1-)Phone: ack
sequenceDiagram
participant Phone
participant Light1
participant Light2
par broadcast (Light1)
Phone->>Light1: toggle
and broadcast (Light2)
Phone->>Light2: toggle
end
Light2-)Phone: ack
Light1-)Phone: ack
sequenceDiagram
participant Phone
participant Light
critical handshake
Phone->>Light: try to connect, new tokenA
Light->>Phone: ack
break wait for response ...
Phone->>Light: try to connect, new tokenA1
end
Light->>Phone: tokenB1
Phone->>Light: ack
option timeout
Phone->>Phone: timeout error
option rejected
Phone->>Phone: rejected
end
sequenceDiagram
participant Phone
participant Light
critical handshake
Phone->>Light: try to connect, new tokenA
Light->>Phone: ack
break wait for response ...
Phone->>Light: try to connect, new tokenA1
end
Light->>Phone: tokenB1
Phone->>Light: ack
option timeout
Phone->>Phone: timeout error
option rejected
Phone->>Phone: rejected
end
內文是利用縮排來表示
mindmap
Root
1.
1.1.
1.2.
2.
2.1.
2.2.
2.2.1.
2.2.1.A.
2.2.1.B.
3.
3.1.
3.1.2.
3.1.2.A.
3.1.2.B.
mindmap
Root
1.
1.1.
1.2.
2.
2.1.
2.2.
2.2.1.
2.2.1.A.
2.2.1.B.
3.
3.1.
3.1.2.
3.1.2.A.
3.1.2.B.
mindmap
Root
Square[Square]
Rounded(Rounded square)
Circle((Circle))
Bang))Bang((
Cloud)Cloud(
Hexagon{{Hexagon}}
default
mindmap
Root
Square[Square]
Rounded(Rounded square)
Circle((Circle))
Bang))Bang((
Cloud)Cloud(
Hexagon{{Hexagon}}
default
注意:編輯軟體不見得都能顯示相關圖示
注意:class 的支援度也不高
mindmap
Root
book["fa-book"]
::icon(fa fa-book)
skull["mdi-skull-outline"]
::icon(mdi mdi-skull-outline)
large[large]
:::urgent large
mindmap
Root
book["fa-book"]
::icon(fa fa-book)
skull["mdi-skull-outline"]
::icon(mdi mdi-skull-outline)
large[large]
:::urgent large
stateDiagram-v2
Requirement --> Analysis
Analysis --> Design
Design --> Implementation
Implementation --> Test
Test-->Requirement
stateDiagram-v2
Requirement --> Analysis
Analysis --> Design
Design --> Implementation
Implementation --> Test
Test-->Requirement
A. States
stateDiagram-v2
idle: Idle
stateDiagram-v2
idle: Idle
B. Transitions, Direction and Comments
stateDiagram-v2
direction LR
idle: Idle
run: Run
%% trigger the task and switch to run
idle --> run: trigger
stateDiagram-v2
direction LR
idle: Idle
run: Run
idle --> run: trigger
stateDiagram-v2
direction LR
idle: Idle
run: Run
[*] --> idle
idle --> run: trigger
run --> [*]
stateDiagram-v2
direction LR
idle: Idle
run: Run
[*] --> idle
idle --> run: trigger
run --> [*]
stateDiagram-v2
direction TB
idle: Idle
run: Run
state run {
direction LR
[*] --> parse
parse --> init
init --> loop
loop --> [*]
}
[*] --> idle
idle --> run: trigger
run --> [*]
stateDiagram-v2
direction TB
idle: Idle
run: Run
state run {
direction LR
[*] --> parse
parse --> init
init --> loop
loop --> [*]
}
[*] --> idle
idle --> run: trigger
run --> [*]
E. Choice
stateDiagram-v2
direction LR
idle: Idle
state check_queue <<choice>>
[*] --> idle
idle --> check_queue
check_queue --> pause: if task <= 0
check_queue --> work: if task > 0
stateDiagram-v2
direction LR
idle: Idle
state check_queue <<choice>>
[*] --> idle
idle --> check_queue
check_queue --> pause: if task <= 0
check_queue --> work: if task > 0
F. Fork, Join and Notes
stateDiagram-v2
direction LR
idle: Idle
state thread_start <<fork>>
state thread_join <<join>>
[*] --> idle
idle --> run
run --> thread_start
thread_start --> work1
thread_start --> work2
work1 --> thread_join
work2 --> thread_join
thread_join --> free
free --> [*]
note right of work1
data1
end note
note left of work2
data2
end note
stateDiagram-v2
direction LR
idle: Idle
state thread_start <<fork>>
state thread_join <<join>>
[*] --> idle
idle --> run
run --> thread_start
thread_start --> work1
thread_start --> work2
work1 --> thread_join
work2 --> thread_join
thread_join --> free
free --> [*]
note right of work1
data1
end note
note left of work2
data2
end note
stateDiagram-v2
direction TB
state Keyboard {
NumLockOff --> NumLockOn : NumLockPressed
NumLockOn --> NumLockOff : NumLockPressed
--
CapsLockOff --> CapsLockOn : CapsLockPressed
CapsLockOn --> CapsLockOff : CapsLockPressed
--
ScrollLockOff --> ScrollLockOn : ScrollLockPressed
ScrollLockOn --> ScrollLockOff : ScrollLockPressed
--
Keys --> Keys: xxxPressed
}
[*] --> tty
tty --> Keyboard
Keyboard --> Action
Action --> [*]
stateDiagram-v2
direction TB
state Keyboard {
NumLockOff --> NumLockOn : NumLockPressed
NumLockOn --> NumLockOff : NumLockPressed
--
CapsLockOff --> CapsLockOn : CapsLockPressed
CapsLockOn --> CapsLockOff : CapsLockPressed
--
ScrollLockOff --> ScrollLockOn : ScrollLockPressed
ScrollLockOn --> ScrollLockOff : ScrollLockPressed
--
Keys --> Keys: xxxPressed
}
[*] --> tty
tty --> Keyboard
Keyboard --> Action
Action --> [*]
- commit : Representing a new commit on the current branch.
- branch : To create & switch to a new branch, setting it as the current branch.
- checkout : To checking out an existing branch and setting it as the current branch.
- merge : To merge an existing branch onto the current branch.
---
title: main to develop
---
gitGraph LR:
checkout main
commit
commit
branch develop
checkout main
commit
checkout develop
commit
commit
checkout main
commit
commit
checkout develop
commit
merge main
commit
commit
checkout main
commit
commit
---
title: main to develop
---
gitGraph LR:
checkout main
commit
commit
branch develop
checkout main
commit
checkout develop
commit
commit
checkout main
commit
commit
checkout develop
commit
merge main
commit
commit
checkout main
commit
commit
---
title: develop to main
---
gitGraph LR:
checkout main
commit
commit
branch develop
checkout main
commit
checkout develop
commit
commit
checkout main
commit
commit
merge develop
checkout develop
commit
commit
commit
checkout main
commit
commit
---
title: develop to main
---
gitGraph LR:
checkout main
commit
commit
branch develop
checkout main
commit
checkout develop
commit
commit
checkout main
commit
commit
checkout develop
commit
merge main
commit
commit
checkout main
commit
commit
5.5.2. custom commit id, commit type, tags and orientation
orientation: LR (default), TB
---
title: custom commit id, commit type and tags
---
gitGraph TB:
checkout main
commit
commit id: "1"
commit id: "2"
commit id: "3-bad" type: HIGHLIGHT
commit id: "4-3 Reverse" type: REVERSE
---
title: custom commit id, commit type and tags
---
gitGraph TB:
checkout main
commit
commit id: "1"
commit id: "2"
commit id: "3-bad" type: HIGHLIGHT
commit id: "4-3 Reverse" type: REVERSE
5.5.5. branch, checkout, merge and cherry-pick
---
title: branch, checkout, merge and cherry-pick
---
gitGraph LR:
checkout main
commit id:"1"
commit id:"2"
branch develop
checkout develop
commit id:"3"
checkout main
commit id:"4"
commit id:"5"
commit id:"6"
checkout develop
cherry-pick id:"5"
checkout main
commit id:"8"
checkout develop
merge main id: "9"
---
title: branch, checkout, merge and cherry-pick
---
gitGraph LR:
checkout main
commit id:"1"
commit id:"2"
branch develop
checkout develop
commit id:"3"
checkout main
commit id:"4"
commit id:"5"
commit id:"6"
checkout develop
cherry-pick id:"5"
checkout main
commit id:"8"
checkout develop
merge main id: "9"
---
config:
gitGraph:
parallelCommits: false
---
gitGraph:
commit
branch develop
commit
commit
checkout main
commit
commit
I.1. Mermaid
I.2. mermaid-js/mermaid
I.3. Markdown 语法・简明版
I.4. Markdown文件
I.5. adrai/flowchart.js
I.6. MarkDown flow流程图示例
I.9. HTML特殊字符編碼
I.10. Get HTML color codes, Hex color codes, RGB and HSL values with our color picker, color chart and HTML color names. Let's go!
網路可以找到很多工具,但是真的實用的不多。
V.1. Typora
目前使用的工具。開啟快,支援度高,多視窗。
要花錢買!值得買!
- Edit
- View
- mermaid
V.2. Notepad++
Add plugins - Markdown Panel and MarkdownViewer++
功能豐富,開啟速度快,但是在 markdown 這部分會有當機問題。
免費的!
- Edit
- View
- mermaid
使用網頁瀏覽器開啟。
免費的!
Add 擴充功能 Markdown Viewer
- Edit
- View
- mermaid
整合性的編輯工具。
功能豐富,開啟速度快。
免費的!
Add EXTENSIONS - markdownlint or Markdown All in One,
- Edit
- View
- mermaid
Created and designed by Lanka Hsu.
HelperX is available under the BSD-3-Clause license. See the LICENSE file for more info.
Footnotes
-
請寫下註腳的描述 ↩