-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (73 loc) · 2.46 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Document</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Description" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0"
/>
<link rel="icon" href="https://fav.farm/📚" />
<link
rel="stylesheet"
media="(prefers-color-scheme: dark)"
href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple-dark.css"
/>
<link
rel="stylesheet"
media="(prefers-color-scheme: light)"
href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple.css"
/>
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
name: "docsify-starter",
repo: "awe-templates/docsify-starter",
loadSidebar: true,
subMaxLevel: 5,
coverpage: true,
// auto2top: true,
// plugin: copy to clipboard
copyCode: {
buttonText: "Copy",
errorText: "Error",
successText: "Copied",
},
// plugin: pagination
pagination: {
previousText: "Previous",
nextText: "Next",
crossChapter: true,
crossChapterText: true,
},
plugins: [
titlePlugin({
suffix: ` | ${document.getElementsByTagName("title")[0].text}`,
}),
],
};
// @source: https://github.com/docsifyjs/docsify/issues/540#issuecomment-884447568
function titlePlugin(config) {
return (hook, vm) => {
hook.doneEach((content) => {
document.title += config.suffix;
});
};
}
</script>
<!-- Docsify -->
<script src="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/js/docsify-themeable.min.js"></script>
<!-- Recommended -->
<script src="https://cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify@4/lib/plugins/zoom-image.min.js"></script>
<!-- Plugin: Copy to Clipboard -->
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
<!-- Plugin: Pagination -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.js"></script>
</body>
</html>