-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathindex.html
185 lines (145 loc) · 5.82 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>剑指Offer题解</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="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css">
</head>
<body>
<div id="app">正在加载...</div>
<style type="text/css">
.sidebar p.active{
border-right: 2px solid;
color: var(--theme-color,#42b983);
font-weight: 600;
}
:root {
--docsifytabs-border-color: #ededed;
--docsifytabs-tab-highlight-color: purple;
}
</style>
<script>
window.$docsify = {
name: '剑指Offer题解',
repo: 'https://github.com/hi-dhl/Leetcode-Solutions-with-Java-And-Kotlin',
loadNavbar: true,
loadSidebar: true, // 侧边栏配置
// subMaxLevel: 3, // 侧边栏显示层级
// maxLevel: 4,
subMaxLevel: 1,
coverpage: true, // 是否配置封面
auto2top: true, // 切换页面后是否自动跳转到页面顶部
autoHeader: true,
markdown: {
highlight: 'pygmentize.js',
},
// themeColor: '#FFA500',
// 更新日期
formatUpdated: '{YYYY}-{MM}-{DD} {HH}:{mm}:{ss}',
search: {
paths: 'auto',
placeholder: ' 🔍 搜索 ',
noData: '哎呀,找不到结果! ',
// Headline depth, 1 - 6
depth: 6
},
copyCode: {
buttonText : '复制',
errorText : 'Error',
successText: '复制成功'
},
pagination: {
previousText: '上一题',
nextText: '下一题',
},
toc: {
tocMaxLevel: 5,
target: 'h2, h3, h4, h5, h6'
},
tabs: {
persist : true, // default
sync : true, // default
theme : 'classic', // default
tabComments: true, // default
tabHeadings: true // default
},
plugins: [
function(hook, vm) {
hook.init(function() {
// 初始化完成后调用,只调用一次,没有参数。
});
hook.beforeEach(function(content) {
var url1 ='https://github.com/hi-dhl/Leetcode-Solutions-with-Java-And-Kotlin/tree/master/offer/' + vm.route.file;
// var editHtml1 = '❤️ 如果发现错误,或者有更好的方案,期待你来一起完善?[前往 Github 编辑此页](' + url1 +')!\n'
var editHtml1 = '❤️ 公众号 : ByteCode \n'
var url2 ='https://github.com/hi-dhl/Leetcode-Solutions-with-Java-And-Kotlin/tree/master/00-code(%E6%BA%90%E4%BB%A3%E7%A0%81)/src/com/hi/dhl/algorithms';
var editHtml2 = ' <br/>👉 点击这里 [前往 Github 查看](' + url2 +') 文章源码\n'
var head = ">"+editHtml1 + editHtml2
// var footer = [
// '----',
// '> Last modified {docsify-updated}.',
// '> [hi-dhl](https://hi-dhl.com) ©2020. powered by [docsify](https://github.com/docsifyjs/docsify) .',
// ].join("\n");
return head
+ "\n----\n"
+ content
+ "\n\n"
});
hook.afterEach(function(html, next) {
// 解析成 html 后调用。
// beforeEach 和 afterEach 支持处理异步逻辑
// ...
// 异步处理完成后调用 next(html) 返回结果
next(html);
});
hook.doneEach(function() {
// 每次路由切换时数据全部加载完成后调用,没有参数。
// ...
});
hook.mounted(function() {
// 初始化并第一次加载完成数据后调用,只触发一次,没有参数。
});
hook.ready(function() {
// 初始化并第一次加载完成数据后调用,没有参数。
});
}
]
}
</script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<!--搜索插件-->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<!-- 图片缩放插件 -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<!--代码块复制插件-->
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
<!--分页插件-->
<script src="//cdn.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.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-java.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-kotlin.min.js"></script>
<!--统计访问量插件-->
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<!-- 文章目录 -->
<script src="//unpkg.com/docsify-plugin-toc"></script>
<!-- 表情 -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script>
<!-- tab https://jhildenbiddle.github.io/docsify-tabs -->
<!-- <script src="https://cdn.jsdelivr.net/npm/docsify@4"></script> -->
<script src="https://cdn.jsdelivr.net/npm/docsify-tabs@1"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-katex@latest/dist/docsify-katex.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-113154452-4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-113154452-4');
</script>
<!-- more https://docsify.js.org/#/awesome?id=plugins -->
</body>
</html>