1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-20 22:17:09 +08:00

🔥[docs feat] 添加基于 giscus 的评论功能

This commit is contained in:
guide 2022-04-02 12:34:21 +08:00
parent 4a50a55e30
commit 7faf4d247b
2 changed files with 12 additions and 12 deletions

View File

@ -15,14 +15,7 @@ export default defineThemeConfig({
pure: true, pure: true,
navbar: navbarConfig, navbar: navbarConfig,
sidebar: sidebarConfig, sidebar: sidebarConfig,
pageInfo: [ pageInfo: ["Author", "Category", "Tag", "Date", "Original", "Word"],
"Author",
"Category",
"Tag",
"Date",
"Original",
"Word",
],
blog: { blog: {
intro: "/about-the-author/", intro: "/about-the-author/",
sidebarDisplay: "mobile", sidebarDisplay: "mobile",
@ -48,6 +41,13 @@ export default defineThemeConfig({
feed: { feed: {
json: true, json: true,
}, },
comment: {
type: "giscus",
repo: "Snailclimb/JavaGuide",
repoId: "MDEwOlJlcG9zaXRvcnkxMzI0NjQzOTU=",
category: "Announcements",
categoryId: "DIC_kwDOB-U_C84COYQF",
},
search: { search: {
// https://v2.vuepress.vuejs.org/zh/reference/plugin/search.html // https://v2.vuepress.vuejs.org/zh/reference/plugin/search.html
// 排除首页 // 排除首页

View File

@ -14,9 +14,9 @@
"webpack-serve": "vuepress-webpack dev docs" "webpack-serve": "vuepress-webpack dev docs"
}, },
"devDependencies": { "devDependencies": {
"vuepress-theme-hope": "2.0.0-beta.28", "vuepress-theme-hope": "2.0.0-beta.32",
"vuepress-vite": "2.0.0-beta.36", "vuepress-vite": "2.0.0-beta.37",
"vuepress-webpack": "2.0.0-beta.36", "vuepress-webpack": "2.0.0-beta.37",
"@vuepress/plugin-search": "^2.0.0-beta.36" "@vuepress/plugin-search": "^2.0.0-beta.37"
} }
} }