-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
95 lines (90 loc) · 3.55 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 lang="en">
<head>
<meta charset="UTF-8">
<title>Jammiest's 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, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="./asset/docsify/lib/themes/vue.css">
<link rel="stylesheet" href="./asset/mermaid/dist/mermaid.min.css">
<link rel="stylesheet" href="./asset/[email protected]/katex.min.css">
<style>.katex { font-size: 1.2em; }</style>
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
// load from _navbar.md
loadNavbar: true,
loadSidebar: true,
subMaxLevel: 3,
auto2top: true,
name: 'Jammiest',
notFoundPage: true,
repo: 'https://github.com/jammiest/tech_docs.git',
search: {
maxAge: 86400000, // Expiration time, the default one day
paths: 'auto', // or 'auto'
placeholder: '搜索',
noData: '未搜到任何结果',
// Headline depth, 1 - 6
depth: 6,
hideOtherSidebarContent: true, // whether or not to hide other sidebar content
}
}
</script>
<script src="./asset/[email protected]/lib/docsify.min.js"></script>
<script src="./asset/[email protected]/lib/plugins/search.js"></script>
<script src="./asset/PrismJS/components/prism-php.min.js"></script>
<script src="./asset/PrismJS/components/prism-sql.min.js"></script>
<script src="./asset/PrismJS/components/prism-python.min.js"></script>
<script src="./asset/PrismJS/components/prism-java.min.js"></script>
<script src="./asset/PrismJS/components/prism-git.min.js"></script>
<script src="./asset/PrismJS/components/prism-nginx.min.js"></script>
<script src="./asset/PrismJS/components/prism-ini.min.js"></script>
<script src="./asset/PrismJS/components/prism-json.min.js"></script>
<script src="./asset/PrismJS/components/prism-bash.min.js"></script>
<script src="./asset/PrismJS/components/prism-powershell.min.js"></script>
<script src="./asset/PrismJS/components/prism-docker.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-http.js"></script>
<script src="./asset/[email protected]/dist/docsify-copy-code.min.js"></script>
<script src="./asset//mermaid/dist/mermaid.min.js"></script>
<script src="./asset/[email protected]/lib/plugins/zoom-image.js"></script>
<script src="./asset/[email protected]/katex.min.js"></script>
<script src="./asset/[email protected]/lib/plugins/emoji.js"></script>
<script>
var mermaidOfNumber = 0;
mermaid.initialize({ startOnLoad: false });
window.$docsify.markdown = {
renderer: {
code: function (code, lang) {
if (lang === "mermaid") {
return (
'<div class="mermaid">' + mermaid.render('mermaid-svg-' + mermaidOfNumber++, code) + "</div>"
);
}
return this.origin.code.apply(this, arguments);
}
},
};
console.log(window.$docsify.plugins)
/* window.$docsify.plugins = [
function (hook) {
hook.beforeEach(function (content) {
return content.replace(/\$\$([\s\S]*?)\$\$/g, function (m, code) {
return katex.renderToString(code)
})
})
}
]; */
window.$docsify.plugins.push(function (hook) {
hook.beforeEach(function (content) {
return content.replace(/\$\$([\s\S]*?)\$\$/g, function (m, code) {
return katex.renderToString(code)
})
})
});
</script>
</body>
</html>