forked from LedgerProject/home
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
229 lines (213 loc) · 11.3 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Ledger Round 2 📝 Documentation</title>
<link rel="icon" href="./media/general/LedgerLogoSquare.png" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="LEDGER, an EU funded project, empowers people to solve problems using decentralised technologies such as blockchain, peer to peer or distributed ledger technologies."
/>
<meta name="keywords" content="crypto, security, iot, blockchain" />
<meta property="og:title" content="Zenroom 📝 Documentation" />
<meta property="og:description" content="LEDGER, an EU funded project, empowers people to solve problems using decentralised technologies such as blockchain, peer to peer or distributed ledger technologies."
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://ledgerproject.github.io/home/" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@DyneOrg" />
<meta name="twitter:title" content="Ledger Round 2 📝 Documentation" />
<meta name="twitter:description" content="LEDGER, an EU funded project, empowers people to solve problems using decentralised technologies such as blockchain, peer to peer or distributed ledger technologies."
/>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/tonsky/[email protected]/distr/fira_code.css" />
<link rel="stylesheet" href="//unpkg.com/vis-network/dist/vis-network.min.css" />
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.css" />
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css" />
<link rel="stylesheet" href="style.css" />
<script src="//cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script src="//unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
</head>
<body>
<div id="app"></div>
<div class="bibtex_template">
<div class="bibtexVar" id="+BIBTEXKEY+" extra="BIBTEXKEY"></div>
<div class="if author" style="font-weight: bold;">
<span class="if year">
<span class="year"></span>,
</span>
<span class="author"></span>
<span class="if url" style="margin-left: 20px">
<a class="url" style="color:black; font-size:10px">(view online)</a>
</span>
</div>
<div style="margin-left: 10px; margin-bottom:5px;">
<span class="title"></span>
</div>
</div>
<script>
const uuidv41 = () => ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, c => (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16));
window.$docsify = {
logo: "./media/general/LedgerLogo.png",
homepage: './general/start.md',
formatUpdated: '{MM}/{DD}/{YYYY} {HH}:{mm}',
repo: "LedgerProject",
relativePath: true,
loadSidebar: true,
loadNavbar: true,
autoHeader: false,
mergeNavbar: true,
name: "Ledger",
coverpage: true,
auto2top: true,
subMaxLevel: 3,
maxLevel: 4,
alias: {
'.*?/CHANGELOG': 'https://raw.githubusercontent.com/DECODEproject/Zenroom/master/ChangeLog.md',
'.*?/CONTRIBUTING': 'https://raw.githubusercontent.com/DECODEproject/Zenroom/master/Agreement.md',
'.*?/TODO': 'https://raw.githubusercontent.com/DECODEproject/Zenroom/master/TODO.md',
'.*?/restroom': 'https://raw.githubusercontent.com/dyne/restroom/master/README.md',
'.*?/lotionroom': 'https://raw.githubusercontent.com/dyne/lotionroom/master/README.md',
'.*?/redroom': 'https://raw.githubusercontent.com/DECODEproject/RedRoom/master/docs/website/docs/README.md',
'.*?/sawroom': 'https://raw.githubusercontent.com/DECODEproject/Sawroom/master/website/docs/README.md',
'/modules/(.*)': '/_media/ldoc/o/modules/$1',
"/.*/_sidebar.md": "/_sidebar.md",
"/.*/_navbar.md": "/_navbar.md",
},
search: {
maxAge: 86400000, // Expiration time, the default one day
paths: "auto",
placeholder: "Type to search"
},
pagination: {
crossChapter: true,
crossChapterText: true
},
remoteMarkdown: {
tag: 'remote_include',
},
markdown: {
gfm: true,
break: true,
renderer: {
code: function(code, lang) {
if (lang === "mermaid") {
return (
'<div class="mermaid">' + mermaid.render('mermaid-svg-' + num++, code) + "</div>"
);
}
if (lang === "json") {
let jpp = "";
try {
jpp = JSON.stringify(JSON.parse(code), null, 2);
} catch {}
return this.origin.code(jpp, lang)
}
// if (lang === "gv") {
// const dom = window.Docsify.dom
// var container = dom.create("div");
// container.id = `gv-${new Date().getTime()}`
// var data = vis.parseDOTNetwork(code);
// dom.appendTo(dom.body, container)
// var network = new vis.Network(container, data);
// return container.innerHTML;
// }
return this.origin.code.apply(this, arguments);
}
}
},
plugins: [
hook => {
const updated = `<p class="updated"><em><small>Last modified {docsify-updated}</small></em></p>`
const footer = `<footer><span><a href="https://dyne.org" target="_blank" alt="Authors">Dyne.org</a> Foundation © 2017-${new Date().getFullYear()}</span></footer>`
hook.beforeEach(html => html + updated);
hook.afterEach((html, next) => {
next(html + footer)
});
},
hook => {
// citation plugin
hook.afterEach((html, next) => {
const _citRegex = /\[\@(.+?)\]/g;
const root = document.location.href.replace(/#.*/, '')
html = html.replace(_citRegex, `(<a href='${document.location.href}?id=$1'>$1</a>)`)
next(html)
})
},
(hook, vm) => {
// ldoc fix links
hook.afterEach((content, next) => {
let html = content
if (vm.route.path.startsWith('/pages/ldoc/o/')) {
html = content.replace(/href="\.\.\//gi, `href="`)
.replace(/modules\//gi, `/#/pages/ldoc/o/modules/`)
.replace(/examples\//gi, `/#/pages/ldoc/o/examples/`)
.replace(/href="#/gi, `href="${document.location.href.split("?")[0]}?id=`)
.replace(/name = "/gi, `id = "`)
.replace(`<li><a href="index.html">Index</a></li>`,
`<li><a href="/#/pages/ldoc/o/README.md">Index</a></li>`)
}
next(html)
})
},
hook => {
const selector = 'pre[data-lang="gv"]'
hook.afterEach((html, next) => {
const dom = window.Docsify.dom
const $ = dom.create('div', html)
if (!$.querySelectorAll) {
return html
}
(dom.findAll($, selector) || []).forEach(function(element) {
if (element.parentNode) {
let container = dom.create('div')
const content = element.childNodes[0].innerText;
dom.appendTo(dom.body, container)
const data = vis.parseDOTNetwork(content);
const network = new vis.Network(container, data)
element.parentNode.replaceChild(container, element)
}
})
next($.innerHTML)
})
}
]
};
let num = 0;
mermaid.initialize({
startOnLoad: false,
securityLevel: 'loose',
sequence: {
// showSequenceNumbers: true,
"height": 40,
"actorMargin": 200,
"mirrorActors": true,
},
"flowchart": {
"htmlLabels": true
}
});
</script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/emoji.min.js"></script>
<script src="//unpkg.com/docsify-copy-code"></script>
<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
<script src="//unpkg.com/docsify-remote-markdown/dist/docsify-remote-markdown.min.js"></script>
<script src="//code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script src="//cdn.jsdelivr.net/gh/pcooksey/bibtex-js/src/bibtex_js.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/external-script.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/ga.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-tabs@1"></script>
<script src="//cdn.jsdelivr.net/gh/rizdaprasetya/docsify-fix-pageload-scroll@master/index.js"></script>
<script src="//unpkg.com/prismjs/components/prism-json.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-c.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-yaml.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-lua.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-python.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-go.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-gherkin.js"></script>
</body>
</html>