Skip to content

Commit d292346

Browse files
authored
添加Giscus评论 (#31)
* 添加Giscus评论系统 * 修改讨论区链接
1 parent 751ee3c commit d292346

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/.vuepress/theme.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default hopeTheme({
3030
sidebar: zhSidebar,
3131

3232
footer:
33-
"Zotero 中文小组 | <a href='/contributing/'>贡献指南</a> | <a href='/'>参与讨论</a> | <a href='/'>加入 QQ 群组</a>",
33+
"Zotero 中文小组 | <a href='/contributing/'>贡献指南</a> | <a href='https://github.com/orgs/zotero-chinese/discussions'>参与讨论</a> | <a href='/'>加入 QQ 群组</a>",
3434

3535
displayFooter: true,
3636

@@ -42,10 +42,13 @@ export default hopeTheme({
4242
},
4343

4444
plugins: {
45-
// comment: {
46-
// // @ts-expect-error: You should generate and use your own comment service
47-
// provider: "Waline",
48-
// },
45+
comment: {
46+
provider: "Giscus",
47+
repo: "zotero-chinese/.github",
48+
repoId: "R_kgDOHv4ukA",
49+
category: "文档评论区",
50+
categoryId: "DIC_kwDOHv4ukM4CZz7S",
51+
},
4952

5053
// all features are enabled for demo, only preserve features you need here
5154
mdEnhance: {

src/contributing/contributing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Zotero 中文文档接受多种形式的贡献,请阅读这一份指南,以
2222
参与文档的维护的主要方式:
2323

2424
1. 在 GitHub 上的文档源码仓库下 [提交 ISSUE](https://github.com/zotero-chinese/wiki/issues)
25-
2. 在 GitHub 上的文档源码仓库下的 Discussions 上留言(也可以直接点击文档网页底部的“参与讨论”)
26-
3. ~~在网页底部评论区留言~~ (暂未上线)
25+
2. 在 GitHub Zotero Chinese 组织的 [Discussions 上讨论](https://github.com/orgs/zotero-chinese/discussions)(也可以直接点击文档网页底部的“参与讨论”)
26+
3. 在网页底部评论区留言
2727
4. 修改文档源码并提交 Pull Request (不熟悉 Pull Request 的读者可以参考 Pull Request 流程)
2828

2929
## 提交 / 参与议题 / 讨论

0 commit comments

Comments
 (0)