-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
95 lines (90 loc) · 2.41 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html>
<head>
<title>ReSpec Mermaid Test</title>
<meta http-equiv='Content-Type' content='text/html;charset=utf-8'/>
<script src='https://www.w3.org/Tools/respec/respec-w3c' class='remove'></script>
<script src="./dist/main.js" class="remove"></script>
<script type="text/javascript" class="remove">
var respecConfig = {
specStatus: "unofficial",
subtitle: "Test of ReSpec Mermaid",
shortName: 'respec-mermaid',
doJsonLd: true,
includePermalinks: false,
editors: [
{ name: "Manu Sporny", url: "https://www.linkedin.com/in/manusporny/",
company: "Digital Bazaar", companyURL: "http://digitalbazaar.com/"}
],
authors:
[
{ name: "Manu Sporny", url: "http://digitalbazaar.com/",
company: "Digital Bazaar", companyURL: "http://digitalbazaar.com/"}
],
maxTocLevel: 2,
inlineCSS: true,
preProcess: [window.respecMermaid.createFigures]
};
</script>
<style>
pre .comment {
font-weight: bold;
color: SteelBlue;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
</style>
</head>
<body>
<section id="abstract">
<p>Hello respec-mermaid!</p>
</section>
<section>
<h1>Examples</h1>
<p>Here is a mermaid example:</p>
<figure>
<pre class="mermaid">
sequenceDiagram
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
Alice-)John: See you later!
</pre>
<figcaption>A sequence diagram example</figcaption>
</figure>
<figure>
<pre class="mermaid">
graph TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[fa:fa-car Car]
</pre>
<figcaption>A flow chart example</figcaption>
</figure>
<figure>
<pre class="mermaid">
stateDiagram-v2
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]
</pre>
<figcaption>A state diagram example</figcaption>
</figure>
<figure>
<pre class="mermaid">
pie title Pets adopted by volunteers
"Dogs" : 386
"Cats" : 85
"Rats" : 15
</pre>
<figcaption>A pie chart example</figcaption>
</figure>
</section>
</body>
</html>