Skip to content

Commit 137f347

Browse files
committed
Fix 全文检索功能
1 parent 20caa11 commit 137f347

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@
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,
2423
search: {
25-
paths: 'auto',
26-
placeholder: '搜索',
27-
noData: '找不到结果',
28-
// Headline depth, 1 - 6
29-
depth: 6
24+
maxAge: 86400000, // 过期时间,单位毫秒,默认一天
25+
paths: 'auto',
26+
placeholder: '搜索',
27+
noData: '找不到结果',
28+
// Headline depth, 1 - 6
29+
depth: 2
3030
},
3131

3232
}
3333
</script>
3434
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
3535
<!--Java代码高亮-->
3636
<script src="//unpkg.com/prismjs/components/prism-java.min.js"></script>
37-
<!--全文搜索-->
38-
<script src="//unpkg.com/docsify/lib/plugins/search.js"></script>
37+
<!--全文搜索,直接用官方提供的无法生效-->
38+
<script src="https://cdn.bootcss.com/docsify/4.5.9/plugins/search.min.js"></script>
3939

4040
</body>
4141
</html>

0 commit comments

Comments
 (0)