Skip to content

Commit f24f12f

Browse files
committed
添加贡献指南
1 parent db85a1b commit f24f12f

File tree

19 files changed

+890
-630
lines changed

19 files changed

+890
-630
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
## 贡献指南
1414

15-
15+
<https://zotero-zh.netlify.app/about/contributing/CONTRIBUTING.html>
1616

1717
## 致谢
1818

src/.vuepress/navbar.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ export const zhNavbar = navbar([
2020
{
2121
text: "插件开发手册",
2222
icon: "code",
23-
link: "/plugin-dev-guide/"
23+
link: "/plugin-dev-guide/",
2424
},
2525
{
2626
text: "CSL 中文文档",
2727
icon: "code",
28-
link: "/csl-dev-guide/"
28+
link: "/csl-dev-guide/",
2929
},
3030
],
3131
},
@@ -36,13 +36,13 @@ export const zhNavbar = navbar([
3636
{
3737
text: "贡献指南",
3838
icon: "creative",
39-
link: "/contribution-guide/"
39+
link: "/about/contributing.md",
4040
},
4141
{
4242
text: "关于",
4343
icon: "about",
44-
link: "/about/"
45-
}
46-
]
44+
link: "/about/",
45+
},
46+
],
4747
},
4848
]);

src/.vuepress/sidebar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ export const zhSidebar = sidebar({
44
"/user-guide/": "structure",
55
"/plugin-dev-guide/": "structure",
66
"/csl-dev-guide/": "structure",
7-
"/contribution-guide/": "structure",
8-
"/": "heading",
7+
"/about/": "structure",
8+
"/": "structure",
99
});

src/about/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: 关于
3+
---
4+
5+
# 关于
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
title: 贡献指南
3+
icon: build
4+
order: 1
5+
date: 2023-07-20 23:05:53
6+
updated: 2023-07-21 11:56:02
7+
---
8+
9+
# 贡献指南
10+
11+
Zotero 中文文档接受多种形式的贡献,请阅读这一份指南,以更快、更有效地参与到文档的维护中。
12+
13+
## 文档维护的内容和主要方式
14+
15+
文档的维护与更新主要包括几个方面:
16+
17+
- 修正错别字、语句不通等
18+
- 修正文档中的错误或不清晰的描述
19+
- 调整章节结构,使文档条理更清晰
20+
- 增加示例、专题或入门教程
21+
-
22+
23+
参与文档的维护的主要方式:
24+
25+
1. 在 GitHub 上的文档源码仓库下 [提交 ISSUE](https://github.com/zotero-chinese/wiki/issues)
26+
2. 在 GitHub 上的文档源码仓库下的 Discussions 上留言(也可以直接点击文档网页底部的“参与讨论”)
27+
3. ~~在网页底部评论区留言~~ (暂未上线)
28+
4. 修改文档源码并提交 Pull Request (不熟悉 Pull Request 的读者可以参考 Pull Request 流程)
29+
30+
## 提交 / 参与议题 / 讨论
31+
32+
:::note
33+
34+
读者需要一个 GitHub 账户才能提交发起或参与 ISSUE 讨论。
35+
36+
:::
37+
38+
## 修改文档
39+
40+
若只是对文档做简单的微调,比如修改简单的别字、语句不通或不清晰的描述等,可以直接通过 GitHub 在线修改并提交,参阅后文 [简单修改](#简单修改)
41+
42+
若需要对文档做大量修改,可在经过讨论后,选择 [线下修改](./build.md)
43+
44+
:::note
45+
46+
若不熟悉 Markdown 标记语言,可以参考 [Markdown 语法指南](./markdown.md)
47+
48+
:::
49+
50+
:::note
51+
52+
文档源码开源托管在 [GitHub](https://github.com/) 上,因此读者需要一个 GitHub 账户才能提交 PR。
53+
54+
:::
55+
56+
### 简单修改
57+
58+
1. 在线修改
59+
60+
点击文档网页右上角的 “在 GitHub 上编辑此页”,网页会自动跳转到文档源码文件。点击源码右上方的铅笔符号
61+
62+
“Edit this file”,即可在线修改。此过程会自动复制(Fork)仓库至个人 GitHub 帐号中。
63+
64+
2. 提交修改
65+
66+
修改完后,在下方的 “Commit changes” 中输入有关此次修改的标题和具体描述。输入一个简短的新分支名字。
67+
68+
点击 “Commit changes” 提交修改。
69+
70+
3. 提交 PR
71+
72+
在 “Open a pull request” 页面中,输入此 PR 的标题和具体描述。点击 “Create pull request” 即可。
73+
74+
### 大量修改
75+
76+
请参考 [构建指南](build.md)
77+
78+
### 注意事项
79+
80+
- Commit 的注释信息应该是描述性的
81+
- 希望读者对审稿人/维护者的评论和意见保持开放的心态,并努力改进代码或文档
82+
- 新的 PR 不一定会及时审核,取决于审稿人/维护者的当时的工作时间

src/about/contributing/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: 贡献者指南
3+
index: false
4+
order: 2
5+
---
6+
7+
<AutoCatalog />

0 commit comments

Comments
 (0)