-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
66 lines (65 loc) · 2.02 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta charset="UTF-8">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify/themes/vue.css">
<style>
.app-name {
padding: 25px;
}
.content .markdown-section {
width: 85%;
max-width: 1000px;
}
.markdown-section p, .markdown-section ul, .markdown-section ol {
font-size: 18px;
line-height: 1.8rem;
}
.markdown-section code {
font-size: 14px;
}
.markdown-section pre > code{
font-size: 14px;
}
.mermaid .edgeLabel {
padding: 5px;
display: block;
}
</style>
</head>
<body>
<div data-app id="main">Please wait...</div>
<script>
window.$docsify = {
el: '#main',
loadSidebar: true,
subMaxLevel: 1,
logo: '/_media/asl_logo_black.png',
name: "Artscilab Technical Documentation",
plugins: [
(hook, vm) => {
hook.beforeEach((html) => {
if (/githubusercontent\.com/.test(vm.route.file)) {
url = vm.route.file
.replace('raw.githubusercontent.com', 'github.com')
.replace(/\/master/, '/blob/master')
} else {
url = 'https://github.com/artscilab/lab-docs/blob/master/' + vm.route.file
}
const editHtml = `\n\n:memo: [Contribute to this page](${url})\n`
return html + editHtml
})
}
]
}
</script>
<script src="https://cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-javascript.min.js"></script>
<script src="//unpkg.com/mermaid/dist/mermaid.js"></script>
<script src="//unpkg.com/docsify-mermaid@latest/dist/docsify-mermaid.js"></script>
<script>mermaid.initialize({ startOnLoad: true });</script>
</body>
</html>