|
4 | 4 | <meta charset="UTF-8" /> |
5 | 5 | <title>Java Tutorial</title> |
6 | 6 | <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" /> |
7 | | - <meta content="java-tutorial" name="description" /> |
| 7 | + <meta content="Java Tutorial" name="description" /> |
8 | 8 | <meta |
9 | 9 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" |
10 | 10 | name="viewport" |
11 | 11 | /> |
12 | 12 | <link href="http://dunwu.test.upcdn.net/common/logo/zp_50_50.png" rel="icon" type="image/x-icon" /> |
13 | 13 | <link href="//unpkg.com/docsify/lib/themes/vue.css" rel="stylesheet" title="vue" /> |
14 | | - <link href="//unpkg.com/gitalk/dist/gitalk.css" rel="stylesheet" /> |
15 | 14 | <style> |
16 | 15 | h1 + ul { |
17 | 16 | display: block !important; |
|
70 | 69 | } |
71 | 70 |
|
72 | 71 | /* content 样式内容 */ |
| 72 | + .content a, |
73 | 73 | .sidebar a, |
74 | | - .content a { |
| 74 | + .sidebar ul li a, |
| 75 | + .sidebar ul li a strong { |
75 | 76 | color: #399ab2 !important; |
76 | 77 | text-decoration: none !important; |
77 | 78 | } |
78 | 79 |
|
| 80 | + .content a:hover, |
79 | 81 | .sidebar a:hover, |
80 | | - .content a:hover { |
| 82 | + .sidebar ul li a:hover, |
| 83 | + .sidebar ul li a strong:hover { |
81 | 84 | color: #fe4165 !important; |
82 | 85 | text-decoration: underline !important; |
83 | 86 | } |
84 | 87 |
|
| 88 | + .sidebar h2 span { |
| 89 | + font-size: 18px; |
| 90 | + color: #399ab2 !important; |
| 91 | + text-decoration: none !important; |
| 92 | + } |
| 93 | + |
| 94 | + .sidebar h2 span:hover { |
| 95 | + color: #fe4165 !important; |
| 96 | + text-decoration: underline !important; |
| 97 | + } |
| 98 | + |
| 99 | + .sidebar .sidebar-nav { |
| 100 | + padding-left: 20px; |
| 101 | + } |
| 102 | + |
85 | 103 | .content h1 :hover, |
86 | 104 | .content h2 :hover, |
87 | 105 | .content h3 :hover, |
|
105 | 123 | } |
106 | 124 | } |
107 | 125 |
|
| 126 | + .markdown-section h1, |
108 | 127 | .content h1 a, |
109 | 128 | .content h1 span { |
110 | 129 | color: #399ab2 !important; |
|
227 | 246 | </head> |
228 | 247 | <body> |
229 | 248 | <div id="app">正在加载...</div> |
| 249 | + <script src="//unpkg.com/docsify/lib/docsify.min.js"></script> |
| 250 | + <script src="//unpkg.com/docsify-edit-on-github/index.js"></script> |
230 | 251 | <script> |
231 | 252 | window.$docsify = { |
232 | 253 | name: 'java-tutorial', |
233 | 254 | repo: 'https://github.com/dunwu/java-tutorial', |
234 | 255 | logo: 'http://dunwu.test.upcdn.net/common/logo/zp_100_100.png', |
235 | 256 | auto2top: true, |
236 | 257 | coverpage: 'coverpage.md', |
| 258 | + loadSidebar: 'sidebar.md', |
237 | 259 | maxLevel: 4, |
238 | | - subMaxLevel: 4, |
| 260 | + subMaxLevel: 2, |
239 | 261 | formatUpdated: '{MM}/{DD} {HH}:{mm}', |
240 | 262 | search: { |
241 | 263 | maxAge: 86400000, |
242 | 264 | paths: ['/'], |
243 | 265 | placeholder: '🔍 搜索', |
244 | | - noData: '没有结果!', |
| 266 | + noData: '😭 没有结果!', |
245 | 267 | depth: 4 |
246 | | - } |
| 268 | + }, |
| 269 | + disqus: 'java-tutorial', |
| 270 | + plugins: [ |
| 271 | + EditOnGithubPlugin.create('https://github.com/dunwu/java-tutorial/tree/master/docs/', null, function(file) { |
| 272 | + if (file.indexOf('en') === -1) { |
| 273 | + return '📝 编辑文档' |
| 274 | + } else { |
| 275 | + return '📝 Edit Document' |
| 276 | + } |
| 277 | + }) |
| 278 | + ] |
247 | 279 | } |
248 | 280 | </script> |
249 | | - |
250 | | - <script src="//unpkg.com/docsify/lib/docsify.min.js"></script> |
251 | | - <script src="//unpkg.com/docsify/lib/plugins/emoji.js"></script> |
252 | | - <script src="//unpkg.com/docsify/lib/plugins/zoom-image.js"></script> |
253 | | - <script src="//unpkg.com/docsify/lib/plugins/search.js"></script> |
254 | | - <script src="//unpkg.com/docsify/lib/plugins/gitalk.min.js"></script> |
255 | | - <script src="//unpkg.com/gitalk/dist/gitalk.min.js"></script> |
256 | | - <script> |
257 | | - const gitalk = new Gitalk({ |
258 | | - clientID: '1ba9606d18aec7c070d4', |
259 | | - clientSecret: 'f45be2f8a0706191d5082f92a5a4687066cdd18c', |
260 | | - repo: 'java-tutorial', |
261 | | - owner: 'dunwu', |
262 | | - admin: ['dunwu'], |
263 | | - number: 1, |
264 | | - distractionFreeMode: true, |
265 | | - labels: ['talk'], |
266 | | - title: 'Welcome to java-tutorial', |
267 | | - perPage: 15, |
268 | | - }) |
269 | | - </script> |
| 281 | + <script src="//unpkg.com/docsify/lib/plugins/disqus.min.js"></script> |
| 282 | + <script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script> |
270 | 283 |
|
271 | 284 | <!--代码高亮--> |
272 | 285 | <!--@see https://github.com/PrismJS/prism --> |
|
0 commit comments