Skip to content

Commit 8962aa6

Browse files
committed
Add search features
1 parent 4ea4e2a commit 8962aa6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,23 @@
2020
coverpage: true,//封面,_coverpage.md
2121
auto2top: true,//切换页面后是否自动跳转到页面顶部
2222
//logo: 'https://my-blog-to-use.oss-cn-beijing.aliyuncs.com/2019-3logo-透明.png' ,
23+
depth: 4,
24+
search: {
25+
noData: {
26+
'/': 'No results!'
27+
},
28+
paths: 'auto',
29+
placeholder: {
30+
'/': 'Search'
31+
}
32+
},
33+
2334
}
2435
</script>
2536
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
2637
<!--Java代码高亮-->
2738
<script src="//unpkg.com/prismjs/components/prism-java.min.js"></script>
39+
<!--全文搜索-->
40+
<script src="//unpkg.com/docsify/lib/plugins/search.js"></script>
2841
</body>
2942
</html>

0 commit comments

Comments
 (0)