This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 162
/
index.html
62 lines (59 loc) · 1.81 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Exercism v3</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Description" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple.css"
/>
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
loadSidebar: true,
relativePath: true,
routerMode: 'hash',
subMaxLevel: 1,
markdown: {
renderer: {
code: function (code, lang) {
if (lang === 'mermaid') {
return (
// Random ID generator based on https://stackoverflow.com/a/13403498
'<div class="mermaid">' +
mermaid.render(
'mermaid-svg-' +
Math.random().toString(36).substring(2, 15),
code
) +
'</div>'
)
}
return this.origin.code.apply(this, arguments)
},
},
},
}
</script>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<!-- Render triple backtick mermaid blocks as a mermaid graph -->
<script src="//unpkg.com/[email protected]/dist/mermaid.min.js"></script>
<script>
mermaid.initialize({
logLevel: 0,
startOnLoad: false,
flowchart: { useMaxWidth: false, htmlLabels: true },
themeCSS:
'.label { font-family: Source Sans Pro,Helvetica Neue,Arial,sans-serif; }',
})
</script>
</body>
</html>