Skip to content

Commit 12b5813

Browse files
authored
make sidebar appearance corrent (#573)
1 parent 0acae8e commit 12b5813

File tree

2 files changed

+113
-65
lines changed

2 files changed

+113
-65
lines changed

docs/index.html

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@
5555
/*font-family: Microsoft YaHei, Source Sans Pro, Helvetica Neue, Arial, sans-serif !important;*/
5656
}
5757

58+
.sidebar, .sidebar-nav {
59+
padding-left: 10px;
60+
padding-right: 10px;
61+
}
62+
5863
.markdown-section>p {
5964
font-size: 16px !important;
6065
}
@@ -66,7 +71,7 @@
6671

6772
/*.anchor span {
6873
color: rgb(66, 185, 131);
69-
}*/
74+
}*/
7075

7176
section.cover h1 {
7277
margin: 0;
@@ -345,29 +350,29 @@
345350
window.$docsify = {
346351
name: '《On Java 8》中文版',
347352
repo: 'https://github.com/LingCoder/OnJava8',
348-
// loadSidebar: true,
349-
subMaxLevel: 3,
350-
search: {
351-
paths: 'auto',
352-
placeholder: '🔍 点击搜索 ',
353-
noData: '😞 没有结果! ',
354-
// Headline depth, 1 - 6
355-
depth: 6
353+
loadSidebar: 'sidebar.md',
354+
// subMaxLevel: 3,
355+
search: {
356+
paths: 'auto',
357+
placeholder: '🔍 点击搜索 ',
358+
noData: '😞 没有结果! ',
359+
// Headline depth, 1 - 6
360+
depth: 6
361+
},
362+
copyCode: {
363+
buttonText : '复制',
364+
errorText : 'Error',
365+
successText: 'OK!'
366+
},
367+
pagination: {
368+
previousText: '上一章节',
369+
nextText: '下一章节',
356370
},
357-
copyCode: {
358-
buttonText : '复制',
359-
errorText : 'Error',
360-
successText: 'OK!'
361-
},
362-
pagination: {
363-
previousText: '上一章节',
364-
nextText: '下一章节',
365-
},
366-
coverpage: true
371+
coverpage: true,
367372
}
368373
</script>
369374
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
370-
<!--代码块复制插件-->
375+
<!--代码块复制插件-->
371376
<script src="//unpkg.com/docsify-copy-code"></script>
372377
<!-- 图片缩放插件 -->
373378
<script src="https://cyc-1256109796.cos.ap-guangzhou.myqcloud.com/zoom-image.min.js"></script>

0 commit comments

Comments
 (0)