Skip to content

Commit 7faf4d2

Browse files
committed
🔥[docs feat] 添加基于 giscus 的评论功能
1 parent 4a50a55 commit 7faf4d2

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

docs/.vuepress/themeConfig.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,7 @@ export default defineThemeConfig({
1515
pure: true,
1616
navbar: navbarConfig,
1717
sidebar: sidebarConfig,
18-
pageInfo: [
19-
"Author",
20-
"Category",
21-
"Tag",
22-
"Date",
23-
"Original",
24-
"Word",
25-
],
18+
pageInfo: ["Author", "Category", "Tag", "Date", "Original", "Word"],
2619
blog: {
2720
intro: "/about-the-author/",
2821
sidebarDisplay: "mobile",
@@ -48,6 +41,13 @@ export default defineThemeConfig({
4841
feed: {
4942
json: true,
5043
},
44+
comment: {
45+
type: "giscus",
46+
repo: "Snailclimb/JavaGuide",
47+
repoId: "MDEwOlJlcG9zaXRvcnkxMzI0NjQzOTU=",
48+
category: "Announcements",
49+
categoryId: "DIC_kwDOB-U_C84COYQF",
50+
},
5151
search: {
5252
// https://v2.vuepress.vuejs.org/zh/reference/plugin/search.html
5353
// 排除首页

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"webpack-serve": "vuepress-webpack dev docs"
1515
},
1616
"devDependencies": {
17-
"vuepress-theme-hope": "2.0.0-beta.28",
18-
"vuepress-vite": "2.0.0-beta.36",
19-
"vuepress-webpack": "2.0.0-beta.36",
20-
"@vuepress/plugin-search": "^2.0.0-beta.36"
17+
"vuepress-theme-hope": "2.0.0-beta.32",
18+
"vuepress-vite": "2.0.0-beta.37",
19+
"vuepress-webpack": "2.0.0-beta.37",
20+
"@vuepress/plugin-search": "^2.0.0-beta.37"
2121
}
2222
}

0 commit comments

Comments
 (0)