feat: search, watermark; disable comment
This commit is contained in:
parent
8d11a8d27f
commit
d4a90b3e29
|
|
@ -109,13 +109,7 @@ export default hopeTheme({
|
||||||
// 在这里配置主题提供的插件
|
// 在这里配置主题提供的插件
|
||||||
plugins: {
|
plugins: {
|
||||||
// 注意: 仅用于测试! 你必须自行生成并在生产环境中使用自己的评论服务
|
// 注意: 仅用于测试! 你必须自行生成并在生产环境中使用自己的评论服务
|
||||||
comment: {
|
comment: false,
|
||||||
provider: "Giscus",
|
|
||||||
repo: "vuepress-theme-hope/giscus-discussions",
|
|
||||||
repoId: "R_kgDOG_Pt2A",
|
|
||||||
category: "Announcements",
|
|
||||||
categoryId: "DIC_kwDOG_Pt2M4COD69",
|
|
||||||
},
|
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
components: ["Badge", "VPCard"],
|
components: ["Badge", "VPCard"],
|
||||||
|
|
@ -125,6 +119,12 @@ export default hopeTheme({
|
||||||
prefix: "fa6-solid:",
|
prefix: "fa6-solid:",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
slimsearch: {
|
||||||
|
indexContent: true,
|
||||||
|
},
|
||||||
|
|
||||||
|
watermark: true,
|
||||||
|
|
||||||
// 如果你需要 PWA。安装 @vuepress/plugin-pwa 并取消下方注释
|
// 如果你需要 PWA。安装 @vuepress/plugin-pwa 并取消下方注释
|
||||||
// pwa: {
|
// pwa: {
|
||||||
// favicon: "/favicon.ico",
|
// favicon: "/favicon.ico",
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,8 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@mdit/plugin-katex": "^0.23.1",
|
"@mdit/plugin-katex": "^0.23.1",
|
||||||
"@vuepress/bundler-vite": "2.0.0-rc.24",
|
"@vuepress/bundler-vite": "2.0.0-rc.24",
|
||||||
|
"@vuepress/plugin-slimsearch": "^2.0.0-rc.112",
|
||||||
|
"@vuepress/plugin-watermark": "^2.0.0-rc.112",
|
||||||
"katex": "^0.16.22",
|
"katex": "^0.16.22",
|
||||||
"sass-embedded": "^1.89.2",
|
"sass-embedded": "^1.89.2",
|
||||||
"vue": "^3.5.20",
|
"vue": "^3.5.20",
|
||||||
|
|
@ -3035,6 +3037,24 @@
|
||||||
"vuepress": "2.0.0-rc.24"
|
"vuepress": "2.0.0-rc.24"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@vuepress/plugin-slimsearch": {
|
||||||
|
"version": "2.0.0-rc.112",
|
||||||
|
"resolved": "https://registry.npmjs.org/@vuepress/plugin-slimsearch/-/plugin-slimsearch-2.0.0-rc.112.tgz",
|
||||||
|
"integrity": "sha512-eSRcT/DwgFzzVtdx7tDhzHRwJtUwyExTDbjsnC8GWpTWl4VuFgLZv8iv+ogGCrk2qVmstnoZH4gdqDnYAWZtRA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@vuepress/helper": "2.0.0-rc.112",
|
||||||
|
"@vueuse/core": "^13.5.0",
|
||||||
|
"cheerio": "^1.1.0",
|
||||||
|
"chokidar": "^4.0.3",
|
||||||
|
"slimsearch": "^2.2.2",
|
||||||
|
"vue": "^3.5.17"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"vuepress": "2.0.0-rc.24"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@vuepress/plugin-theme-data": {
|
"node_modules/@vuepress/plugin-theme-data": {
|
||||||
"version": "2.0.0-rc.112",
|
"version": "2.0.0-rc.112",
|
||||||
"resolved": "https://registry.npmjs.org/@vuepress/plugin-theme-data/-/plugin-theme-data-2.0.0-rc.112.tgz",
|
"resolved": "https://registry.npmjs.org/@vuepress/plugin-theme-data/-/plugin-theme-data-2.0.0-rc.112.tgz",
|
||||||
|
|
@ -3049,6 +3069,22 @@
|
||||||
"vuepress": "2.0.0-rc.24"
|
"vuepress": "2.0.0-rc.24"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@vuepress/plugin-watermark": {
|
||||||
|
"version": "2.0.0-rc.112",
|
||||||
|
"resolved": "https://registry.npmjs.org/@vuepress/plugin-watermark/-/plugin-watermark-2.0.0-rc.112.tgz",
|
||||||
|
"integrity": "sha512-80oklpp8u4embZ/pgpuS4nsVuXq3xpB23upEvAi605K82M0TyBJKXWle1tUtKkgyMY3BUl51CnUmAmjF28cQhA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@vuepress/helper": "2.0.0-rc.112",
|
||||||
|
"@vueuse/core": "^13.5.0",
|
||||||
|
"vue": "^3.5.17",
|
||||||
|
"watermark-js-plus": "^1.6.2"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"vuepress": "2.0.0-rc.24"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@vuepress/shared": {
|
"node_modules/@vuepress/shared": {
|
||||||
"version": "2.0.0-rc.24",
|
"version": "2.0.0-rc.24",
|
||||||
"resolved": "https://registry.npmjs.org/@vuepress/shared/-/shared-2.0.0-rc.24.tgz",
|
"resolved": "https://registry.npmjs.org/@vuepress/shared/-/shared-2.0.0-rc.24.tgz",
|
||||||
|
|
@ -5998,6 +6034,16 @@
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"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-js": {
|
"node_modules/source-map-js": {
|
||||||
"version": "1.2.1",
|
"version": "1.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
|
||||||
|
|
@ -6959,6 +7005,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/watermark-js-plus": {
|
||||||
|
"version": "1.6.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/watermark-js-plus/-/watermark-js-plus-1.6.3.tgz",
|
||||||
|
"integrity": "sha512-iCLOGf70KacIwjGF9MDViYxQcRiVwOH7l42qDHLeE2HeUsQD1EQuUC9cKRG/4SErTUmdqV3yf5WnKk2dRARHPQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
"node_modules/web-namespaces": {
|
"node_modules/web-namespaces": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz",
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,8 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@mdit/plugin-katex": "^0.23.1",
|
"@mdit/plugin-katex": "^0.23.1",
|
||||||
"@vuepress/bundler-vite": "2.0.0-rc.24",
|
"@vuepress/bundler-vite": "2.0.0-rc.24",
|
||||||
|
"@vuepress/plugin-slimsearch": "^2.0.0-rc.112",
|
||||||
|
"@vuepress/plugin-watermark": "^2.0.0-rc.112",
|
||||||
"katex": "^0.16.22",
|
"katex": "^0.16.22",
|
||||||
"sass-embedded": "^1.89.2",
|
"sass-embedded": "^1.89.2",
|
||||||
"vue": "^3.5.20",
|
"vue": "^3.5.20",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue