Skip to content

Commit

Permalink
Uodated code example for basic sequence diagram in demos page
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Jan 7, 2015
1 parent 44a11e3 commit 822ab59
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
18 changes: 14 additions & 4 deletions demos.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,21 @@ <h2 id="basic-flowchart">Basic flowchart</h2>
classDef orange fill:#f96,stroke:#333,stroke-width:4px;
class sq,e green
class di orange</div><h2 id="basic-sequence-diagram">Basic sequence diagram</h2>
<div class="mermaid">sequenceDiagram
Alice->>Bob: Hello Bob, how are you?
<pre><code>%% Sequence diagram code
sequenceDiagram
Alice ->> Bob: Hello Bob, how are you?
Bob-->>John: How about you John?
Bob--xAlice: I am good thanks!
Bob-xJohn: I am good thanks!
Bob--x Alice: I am good thanks!
Bob-x John: I am good thanks!
Note right of John: Bob thinks a long&lt;br/>long time, so long&lt;br/>that the text does&lt;br/>not fit on a row.

Bob-->Alice: Checking with John...
Alice->John: Yes... John, how are you?</code></pre><div class="mermaid">sequenceDiagram
Alice->> Bob: Hello Bob, how are you?
Bob-->> John: How about you John?
Bob--x Alice: I am good thanks!
Bob-x John: I am good thanks!

Note right of John: Bob thinks a long<br/>long time, so long<br/>that the text does<br/>not fit on a row.

Bob-->Alice: Checking with John...
Expand Down
19 changes: 16 additions & 3 deletions docs/demos.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,24 @@ graph TB
```
## Basic sequence diagram
```
%% Sequence diagram code
sequenceDiagram
Alice->>Bob: Hello Bob, how are you?
Alice ->> Bob: Hello Bob, how are you?
Bob-->>John: How about you John?
Bob--xAlice: I am good thanks!
Bob-xJohn: I am good thanks!
Bob--x Alice: I am good thanks!
Bob-x John: I am good thanks!
Note right of John: Bob thinks a long&lt;br/>long time, so long&lt;br/>that the text does&lt;br/>not fit on a row.
Bob-->Alice: Checking with John...
Alice->John: Yes... John, how are you?
```
```
sequenceDiagram
Alice->> Bob: Hello Bob, how are you?
Bob-->> John: How about you John?
Bob--x Alice: I am good thanks!
Bob-x John: I am good thanks!
Note right of John: Bob thinks a long<br/>long time, so long<br/>that the text does<br/>not fit on a row.
Bob-->Alice: Checking with John...
Expand Down

0 comments on commit 822ab59

Please sign in to comment.