vuepress: replace search plugin due to theme update

This commit is contained in:
mahula 2025-05-04 20:20:27 +02:00
parent f30e783e28
commit e3d805f7f4
3 changed files with 87 additions and 15 deletions

View File

@ -35,19 +35,8 @@ export default defineUserConfig({
mdEnhance: {
imgSize: true
},
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
}
}
}),

83
package-lock.json generated
View File

@ -17,6 +17,7 @@
"@typescript-eslint/eslint-plugin": "^8.31.1",
"@typescript-eslint/parser": "^8.31.1",
"@vuepress/bundler-vite": "^2.0.0-rc.18",
"@vuepress/plugin-slimsearch": "^2.0.0-rc.99",
"cypress": "^14.3.2",
"eslint": "^9.26.0",
"eslint-config-prettier": "^10.1.2",
@ -35,7 +36,8 @@
"tsx": "^4.19.4",
"typescript": "^5.8.3",
"vuepress": "^2.0.0-rc.22",
"vuepress-theme-hope": "^2.0.0-rc.63"
"vuepress-theme-hope": "^2.0.0-rc.63",
"yaml-eslint-parser": "^1.3.0"
}
},
"node_modules/@actions/core": {
@ -4578,6 +4580,75 @@
"vuepress": "2.0.0-rc.22"
}
},
"node_modules/@vuepress/plugin-slimsearch": {
"version": "2.0.0-rc.99",
"resolved": "https://registry.npmjs.org/@vuepress/plugin-slimsearch/-/plugin-slimsearch-2.0.0-rc.99.tgz",
"integrity": "sha512-kinBXeo2AfvNwjHkqKnXV1KbYByfOd9dyuDuE+AauSOS3SIM27TjESapi2fRAesT4E7Xv4nGneCmatt7qhx76w==",
"dev": true,
"license": "MIT",
"dependencies": {
"@vuepress/helper": "2.0.0-rc.99",
"@vueuse/core": "^13.1.0",
"cheerio": "^1.0.0",
"chokidar": "^3.6.0",
"slimsearch": "^2.2.2",
"vue": "^3.5.13"
},
"peerDependencies": {
"vuepress": "2.0.0-rc.22"
}
},
"node_modules/@vuepress/plugin-slimsearch/node_modules/chokidar": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
"integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
"dev": true,
"license": "MIT",
"dependencies": {
"anymatch": "~3.1.2",
"braces": "~3.0.2",
"glob-parent": "~5.1.2",
"is-binary-path": "~2.1.0",
"is-glob": "~4.0.1",
"normalize-path": "~3.0.0",
"readdirp": "~3.6.0"
},
"engines": {
"node": ">= 8.10.0"
},
"funding": {
"url": "https://paulmillr.com/funding/"
},
"optionalDependencies": {
"fsevents": "~2.3.2"
}
},
"node_modules/@vuepress/plugin-slimsearch/node_modules/glob-parent": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
"dev": true,
"license": "ISC",
"dependencies": {
"is-glob": "^4.0.1"
},
"engines": {
"node": ">= 6"
}
},
"node_modules/@vuepress/plugin-slimsearch/node_modules/readdirp": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
"integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
"dev": true,
"license": "MIT",
"dependencies": {
"picomatch": "^2.2.1"
},
"engines": {
"node": ">=8.10.0"
}
},
"node_modules/@vuepress/plugin-theme-data": {
"version": "2.0.0-rc.99",
"resolved": "https://registry.npmjs.org/@vuepress/plugin-theme-data/-/plugin-theme-data-2.0.0-rc.99.tgz",
@ -14220,6 +14291,16 @@
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
"node_modules/slimsearch": {
"version": "2.2.2",
"resolved": "https://registry.npmjs.org/slimsearch/-/slimsearch-2.2.2.tgz",
"integrity": "sha512-C+E3y4sKKzPzcOyty0G9CjXdLvY0ZWPSCQCDNqSv/P6+rvoL6RiHvuwr0wnxf0QgdbdyNiJQ0w7OdudHoabpCg==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=18.18.0"
}
},
"node_modules/source-map": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",

View File

@ -41,6 +41,7 @@
"@typescript-eslint/eslint-plugin": "^8.31.1",
"@typescript-eslint/parser": "^8.31.1",
"@vuepress/bundler-vite": "^2.0.0-rc.18",
"@vuepress/plugin-slimsearch": "^2.0.0-rc.99",
"cypress": "^14.3.2",
"eslint": "^9.26.0",
"eslint-config-prettier": "^10.1.2",
@ -59,7 +60,8 @@
"tsx": "^4.19.4",
"typescript": "^5.8.3",
"vuepress": "^2.0.0-rc.22",
"vuepress-theme-hope": "^2.0.0-rc.63"
"vuepress-theme-hope": "^2.0.0-rc.63",
"yaml-eslint-parser": "^1.3.0"
},
"cypress-cucumber-preprocessor": {
"nonGlobalStepDefinitions": true,