Merge pull request #212 from IT4Change/replace-search-plugin

refactor(other): replace search plugin
This commit is contained in:
mahula 2025-01-30 17:14:26 +01:00 committed by GitHub
commit 542db85d61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1858 additions and 937 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
},
},
})

2772
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -21,7 +21,8 @@
"homepage": "https://github.com/IT4Change/IT4C.dev#readme",
"devDependencies": {
"@textlint-rule/textlint-rule-no-unmatched-pair": "^2.0.4",
"@vuepress/bundler-vite": "^2.0.0-rc.18",
"@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",
@ -36,8 +37,7 @@
"textlint-rule-no-zero-width-spaces": "^1.0.1",
"textlint-rule-period-in-list-item": "^1.0.1",
"textlint-rule-write-good": "^2.0.0",
"vuepress": "^2.0.0-rc.18",
"vuepress-plugin-search-pro": "^2.0.0-rc.59",
"vuepress-theme-hope": "^2.0.0-rc.59"
"vuepress": "^2.0.0-rc.19",
"vuepress-theme-hope": "^2.0.0-rc.71"
}
}