forked from fuzhengwei/CodeGuide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
90 lines (87 loc) · 3.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CodeGuide | 程序员编码指南</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="//itstack.org/assets/css/vue.css">
<link rel="stylesheet" href="//itstack.org/assets/css/gitalk.css">
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?b3354307876925c625a24bb138d2177c";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<div id="app"></div>
<script>
var gitalkConfig = {
clientID: '4a24b04c6f616216335e',
clientSecret: '39d764afbe74c8e0176f71ae9396734c32102a1c',
repo: 'CodeGuide',
owner: 'fuzhengwei',
admin: ["fuzhengwei"],
distractionFreeMode: false
};
window.$docsify = {
name: 'CodeGuide',
repo: 'https://github.com/fuzhengwei/CodeGuide',
auto2top: true,
coverpage: true,
loadSidebar: true,
maxLevel: 4,
subMaxLevel: 2,
search: {
paths: 'auto',
placeholder: '🔍 Type to search ',
noData: '😞 No Results! ',
depth: 6
},
pagination: {
previousText: 'PREVIOUS',
nextText: 'NEXT',
crossChapter: true
},
plugins: [
function (hook, vm) {
hook.doneEach(function() {
var label, domObj, main, divEle, gitalk;
label = md5(decodeURI(vm.route.path.split("/").pop()));
domObj = Docsify.dom;
main = domObj.getNode("#main");
Array.apply(
null,
document.querySelectorAll("div.gitalk-container")
).forEach(function(ele) {
ele.remove();
});
divEle = domObj.create("div");
divEle.id = "gitalk-container-" + label;
divEle.className = "gitalk-container";
divEle.style = "width: " + main.clientWidth + "px; margin: 0 auto 20px;";
domObj.appendTo(domObj.find(".content"), divEle);
gitalk = new Gitalk(
Object.assign(gitalkConfig, { id: !label ? "home" : label })
);
gitalk.render("gitalk-container-" + label);
});
}
]
}
</script>
<script src="//itstack.org/assets/js/md5.js"></script>
<script src="//itstack.org/assets/js/docsify.min.js"></script>
<script src="//itstack.org/assets/js/gitalk.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.js"></script>
<script src="//itstack.org/assets/js/docsify-pagination.min.js"></script>
<script src="//itstack.org/assets/js/zoom-image.js"></script>
<script src="//itstack.org/assets/js/prism-bash.js"></script>
<script src="//itstack.org/assets/js/prism-java.min.js"></script>
</body>
</html>