Skip to content

Commit 4ad58bf

Browse files
committed
update ZH
1 parent 574b42f commit 4ad58bf

File tree

1 file changed

+45
-10
lines changed

1 file changed

+45
-10
lines changed

README_ZH.md

Lines changed: 45 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,60 @@ Gitea 的首要目标是创建一个极易安装,运行非常快速,安装
2323

2424
如果你想在 Gitea Cloud 上快速部署你自己独享的 Gitea 实例,请访问 [cloud.gitea.com](https://cloud.gitea.com) 开始免费试用。
2525

26-
## 提示
27-
28-
1. **开始贡献代码之前请确保你已经看过了 [贡献者向导(英文)](CONTRIBUTING.md)**.
29-
2. 所有的安全问题,请私下发送邮件给 **[email protected]**。谢谢!
30-
3. 如果你要使用API,请参见 [API 文档](https://godoc.org/code.gitea.io/sdk/gitea).
31-
3226
## 文档
3327

3428
关于如何安装请访问我们的 [文档站](https://docs.gitea.com/zh-cn/category/installation),如果没有找到对应的文档,你也可以通过 [Discord - 英文](https://discord.gg/gitea) 和 QQ群 328432459 来和我们交流。
3529

36-
## 贡献流程
30+
## 编译
31+
32+
在源代码的根目录下执行:
33+
34+
TAGS="bindata" make build
35+
36+
或者如果需要SQLite支持:
37+
38+
TAGS="bindata sqlite sqlite_unlock_notify" make build
39+
40+
编译过程会分成2个子任务:
41+
42+
- `make backend`, 需要 [Go Stable](https://go.dev/dl/), 最低版本需求可查看 [go.mod](/go.mod).
43+
- `make frontend`, 需要 [Node.js LTS](https://nodejs.org/en/download/) 或更高版本.
44+
45+
你需要连接网络来下载 go 和 npm modules. 当从 tar 格式的源文件编译时,其中包含了预编译的前端文件,因此 `make frontend` 将不会被执行. 这允许编译时不需要 Node.js.
46+
47+
更多信息: https://docs.gitea.com/installation/install-from-source
48+
49+
## 使用
50+
51+
编译之后, 默认会在根目录下生成一个名为 `gitea` 的文件. 你可以这样执行它:
3752

38-
Fork -> Patch -> Push -> Pull Request
53+
./gitea web
54+
55+
> [!注意]
56+
> 如果你要使用API,请参见 [API 文档](https://godoc.org/code.gitea.io/sdk/gitea).
57+
58+
## 贡献
59+
60+
贡献流程: Fork -> Patch -> Push -> Pull Request
61+
62+
> [!注意]
63+
> 1. **开始贡献代码之前请确保你已经看过了 [贡献者向导(英文)](CONTRIBUTING.md)**.
64+
> 2. 所有的安全问题,请私下发送邮件给 **[email protected]**. 谢谢!
3965
4066
## 翻译
4167

42-
多语言翻译是基于Crowdin进行的.
4368
[![Crowdin](https://badges.crowdin.net/gitea/localized.svg)](https://crowdin.com/project/gitea)
4469

70+
多语言翻译是基于Crowdin进行的.
71+
72+
[文档](https://docs.gitea.com/contributing/localization) 中获取更多信息.
73+
74+
## 官方和第三方项目
75+
76+
Gitea 提供官方的 [go-sdk](https://gitea.com/gitea/go-sdk), 名为 [tea](https://gitea.com/gitea/tea) 的 CLI 工具 和 用于 Gitea Action 的 [action runner](https://gitea.com/gitea/act_runner).
77+
78+
[gitea/awesome-gitea](https://gitea.com/gitea/awesome-gitea) 是一个 Gitea 相关项目的列表, 你可以在这里找到更多的第三方项目,包括 SDK, 插件, 主题等等.
79+
4580
## 作者
4681

4782
* [Maintainers](https://github.com/orgs/go-gitea/people)
@@ -50,7 +85,7 @@ Fork -> Patch -> Push -> Pull Request
5085

5186
## 授权许可
5287

53-
本项目采用 MIT 开源授权许可证,完整的授权说明已放置在 [LICENSE](https://github.com/go-gitea/gitea/blob/main/LICENSE) 文件中
88+
本项目采用 MIT 开源授权许可证,完整的授权说明已放置在 [LICENSE](https://github.com/go-gitea/gitea/blob/main/LICENSE) 文件中.
5489

5590
## 截图
5691

0 commit comments

Comments
 (0)