优化:使用 vitepress-plugin-pagefind 离线搜索插件替换 vitepress-plugin-search 插件,中文搜索相对友好一些(毕竟国人写的)

This commit is contained in:
2023-03-29 21:23:25 +08:00
parent 8af09b2b72
commit f7781ac328
5 changed files with 70 additions and 127 deletions

View File

@@ -13,14 +13,12 @@
"@arco-design/web-vue": "^2.44.5",
"@types/blueimp-md5": "^2.18.0",
"@types/jquery": "^3.5.16",
"flexsearch": "^0.7.31",
"markdown-it": "^13.0.1",
"mermaid": "9.3.0",
"unplugin-vue-components": "^0.24.0",
"vite": "^4.1.4",
"vitepress": "1.0.0-alpha.63",
"vitepress-plugin-mermaid": "2.0.8",
"vitepress-plugin-search": "1.0.4-alpha.19",
"vue": "^3.2.47"
},
"dependencies": {
@@ -31,7 +29,9 @@
"fast-glob": "^3.2.12",
"gitalk": "^1.8.0",
"gray-matter": "^4.0.3",
"jquery": "^3.6.3"
"jquery": "^3.6.3",
"pagefind": "^0.12.0",
"vitepress-plugin-pagefind": "^0.1.1"
},
"pnpm": {
"overrides": {