change to search pluging slimsearch

This commit is contained in:
mahula 2025-01-30 14:29:59 +01:00
parent 388378c9f8
commit 8c1593023c
3 changed files with 59 additions and 928 deletions

View File

@ -66,19 +66,8 @@ export default hopeTheme({
},
],
plugins: {
searchPro: {
indexContent: true,
autoSuggestions: true,
customFields: [
{
getter: (page) => page.frontmatter.category,
formatter: "Category: $content",
},
{
getter: (page) => page.frontmatter.tag,
formatter: "Tag: $content",
},
],
slimsearch: {
indexContent: true
},
},
})

970
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,7 @@
"devDependencies": {
"@textlint-rule/textlint-rule-no-unmatched-pair": "^2.0.4",
"@vuepress/bundler-vite": "^2.0.0-rc.19",
"@vuepress/plugin-slimsearch": "^2.0.0-rc.74",
"textlint": "^14.4.2",
"textlint-filter-rule-comments": "^1.2.2",
"textlint-rule-apostrophe": "^3.0.0",
@ -37,7 +38,6 @@
"textlint-rule-period-in-list-item": "^1.0.1",
"textlint-rule-write-good": "^2.0.0",
"vuepress": "^2.0.0-rc.19",
"vuepress-plugin-search-pro": "^2.0.0-rc.59",
"vuepress-theme-hope": "^2.0.0-rc.71"
}
}