forked from hunterhug/goa.c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
124 lines (113 loc) · 4.47 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>数据结构和算法(Golang实现)</title>
<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="//cdn.jsdelivr.net/npm/docsify/themes/vue.css">
</head>
<body>
<div id="app">正在火速加载中</div>
<script>
if (typeof navigator.serviceWorker !== 'undefined') {
navigator.serviceWorker.register('sw.js')
}
</script>
<script>
window.$docsify = {
name: '数据结构和算法',
repo: 'https://github.com/hunterhug/goa.c',
loadSidebar: true,
alias: {
'/.*/_sidebar.md': '/_sidebar.md',
'/.*/_navbar.md': '/_navbar.md'
},
loadNavbar: true,
// subMaxLevel: 2,
auto2top: true,
count: {
countable: true,
fontsize: '0.9em',
color: 'rgb(90,90,90)',
language: 'chinese'
},
ga: 'UA-109725015-1',
formatUpdated: '{YYYY}/{MM}/{DD} {HH}:{mm}',
plugins: [
function (hook, vm) {
var footer = [
'<hr/>',
'<footer>',
'<p style="text-align: center"><img src="./picture/weixin.png"></p>',
'<p style="text-align: center"><span>微信扫一扫送一根辣条鼓励作者产出更好的文章吧~ PS: 如果你想参与写作的话可以直接提<a href="https://github.com/hunterhug/goa.c/pulls"> Pull Request </a> 或者加作者微信: hunterhug 。</span></p>',
'</footer>'
].join('');
hook.beforeEach(function (html) {
var url =
'https://github.com/hunterhug/goa.c/blob/master/' +
vm.route.file;
var editHtml = '[📝 修改文章](' + url + ')\n';
return (
editHtml +
html
);
});
hook.afterEach(function (html) {
return html + footer;
});
}
],
pagination: {
previousText: '上一章节',
nextText: '下一章节',
crossChapter: true,
crossChapterText: true,
},
toc: {
tocMaxLevel: 4,
target: 'h2, h3, h4, h5'
},
}
</script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/ga.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
<script src="//unpkg.com/docsify-plugin-toc"></script>
<!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.css"> -->
<!--
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/gitalk.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.js"></script>
-->
<link rel="stylesheet" href="./picture/static/gitalk/dist/gitalk.css">
<script src="./picture/static/gitalk/plugins.gitalk.min.js"></script>
<script src="./picture/static/gitalk/dist/gitalk.js"></script>
<script src="./picture/static/md5.js"></script>
<script>
// var prefix = location.protocol + "//" +location.host + location.pathname
// console.log(prefix)
// console.log(location.href)
// console.log(location.href.replace(prefix,""))
// console.log(location.hash)
const gitalk = new Gitalk({
clientID: "88bd6a753142024b3e6c",
clientSecret: "edb4b5730d40ce1b578d571d72a8b17585ccbafd",
repo: "goa.c",
owner: "hunterhug",
admin: [
"hunterhug"
],
// id: decodeURI(location.href.replace(location.protocol + "//" +location.host + location.pathname,"")),
createIssueManually: false,
distractionFreeMode: true
})
</script>
<script src="//unpkg.com/docsify-count/dist/countable.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-go.min.js"></script>
</body>
</html>