2017-11-27 00:44:32 +03:00
|
|
|
|
---
|
|
|
|
|
date: "2016-11-08T16:00:00+02:00"
|
|
|
|
|
title: "文档"
|
|
|
|
|
slug: "documentation"
|
2018-04-30 20:54:38 +03:00
|
|
|
|
url: "/zh-cn/"
|
2017-11-27 00:44:32 +03:00
|
|
|
|
weight: 10
|
2020-12-09 09:47:06 +03:00
|
|
|
|
toc: false
|
2017-11-27 00:44:32 +03:00
|
|
|
|
draft: false
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# 关于Gitea
|
|
|
|
|
|
|
|
|
|
Gitea 是一个自己托管的Git服务程序。他和GitHub, Bitbucket or Gitlab等比较类似。他是从 [Gogs](http://gogs.io) 发展而来,不过我们已经Fork并且命名为Gitea。对于我们Fork的原因可以看 [这里](https://blog.gitea.io/2016/12/welcome-to-gitea/)。
|
|
|
|
|
|
|
|
|
|
## 目标
|
|
|
|
|
|
|
|
|
|
Gitea的首要目标是创建一个极易安装,运行非常快速,安装和使用体验良好的自建 Git 服务。我们采用Go作为后端语言,这使我们只要生成一个可执行程序即可。并且他还支持跨平台,支持 Linux, macOS 和 Windows 以及各种架构,除了x86,amd64,还包括 ARM 和 PowerPC。
|
|
|
|
|
|
|
|
|
|
## 功能特性
|
|
|
|
|
|
|
|
|
|
- 支持活动时间线
|
|
|
|
|
- 支持 SSH 以及 HTTP/HTTPS 协议
|
|
|
|
|
- 支持 SMTP、LDAP 和反向代理的用户认证
|
|
|
|
|
- 支持反向代理子路径
|
|
|
|
|
- 支持用户、组织和仓库管理系统
|
|
|
|
|
- 支持添加和删除仓库协作者
|
|
|
|
|
- 支持仓库和组织级别 Web 钩子(包括 Slack 集成)
|
|
|
|
|
- 支持仓库 Git 钩子和部署密钥
|
|
|
|
|
- 支持仓库工单(Issue)、合并请求(Pull Request)以及 Wiki
|
|
|
|
|
- 支持迁移和镜像仓库以及它的 Wiki
|
|
|
|
|
- 支持在线编辑仓库文件和 Wiki
|
|
|
|
|
- 支持自定义源的 Gravatar 和 Federated Avatar
|
|
|
|
|
- 支持邮件服务
|
|
|
|
|
- 支持后台管理面板
|
2021-12-07 08:44:08 +03:00
|
|
|
|
- 支持 MySQL、PostgreSQL、SQLite3、MSSQL 和 TiDB(MySQL) 数据库
|
2017-11-27 00:44:32 +03:00
|
|
|
|
- 支持多语言本地化(21 种语言)
|
2022-06-02 07:22:42 +03:00
|
|
|
|
- 支持软件包注册中心(Composer/Conan/Container/Generic/Helm/Maven/NPM/Nuget/PyPI/RubyGems)
|
2017-11-27 00:44:32 +03:00
|
|
|
|
|
|
|
|
|
## 系统要求
|
|
|
|
|
|
|
|
|
|
- 最低的系统硬件要求为一个廉价的树莓派
|
|
|
|
|
- 如果用于团队项目,建议使用 2 核 CPU 及 1GB 内存
|
|
|
|
|
|
|
|
|
|
## 浏览器支持
|
|
|
|
|
|
2022-06-02 07:22:42 +03:00
|
|
|
|
- Chrome, Firefox, Safari, Edge
|
2017-11-27 00:44:32 +03:00
|
|
|
|
|
|
|
|
|
## 组件
|
|
|
|
|
|
2022-07-28 04:22:47 +03:00
|
|
|
|
- Web框架: [Chi](http://github.com/go-chi/chi)
|
|
|
|
|
- ORM: [XORM](https://xorm.io)
|
|
|
|
|
- UI 框架:
|
|
|
|
|
- [jQuery](https://jquery.com)
|
|
|
|
|
- [Fomantic UI](https://fomantic-ui.com)
|
2022-10-02 05:13:44 +03:00
|
|
|
|
- [Vue3](https://vuejs.org)
|
2022-07-28 04:22:47 +03:00
|
|
|
|
- 更多组件参见 package.json
|
|
|
|
|
- 编辑器:
|
|
|
|
|
- [CodeMirror](https://codemirror.net)
|
|
|
|
|
- [EasyMDE](https://github.com/Ionaru/easy-markdown-editor)
|
|
|
|
|
- [Monaco Editor](https://microsoft.github.io/monaco-editor)
|
|
|
|
|
- 数据库驱动:
|
|
|
|
|
- [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql)
|
|
|
|
|
- [github.com/lib/pq](https://github.com/lib/pq)
|
|
|
|
|
- [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3)
|
|
|
|
|
- [github.com/denisenkom/go-mssqldb](https://github.com/denisenkom/go-mssqldb)
|
2017-11-27 00:44:32 +03:00
|
|
|
|
|
|
|
|
|
## 软件及服务支持
|
|
|
|
|
|
|
|
|
|
- [Drone](https://github.com/drone/drone) (CI)
|
|
|
|
|
|
|
|
|
|
## 需要帮助?
|
|
|
|
|
|
Refactor docs (#23752)
This was intended to be a small followup for
https://github.com/go-gitea/gitea/pull/23712, but...here we are.
1. Our docs currently use `slug` as the entire URL, which makes
refactoring tricky (see https://github.com/go-gitea/gitea/pull/23712).
Instead, this PR attempts to make future refactoring easier by using
slugs as an extension of the section. (Hugo terminology)
- What the above boils down to is this PR attempts to use directory
organization as URL management. e.g. `usage/comparison.en-us.md` ->
`en-us/usage/comparison/`, `usage/packages/overview.en-us.md` ->
`en-us/usage/packages/overview/`
- Technically we could even remove `slug`, as Hugo defaults to using
filename, however at least with this PR it means `slug` only needs to be
the name for the **current file** rather than an entire URL
2. This PR adds appropriate aliases (redirects) for pages, so anything
on the internet that links to our docs should hopefully not break.
3. A minor nit I've had for a while, renaming `seek-help` to `support`.
It's a minor thing, but `seek-help` has a strange connotation to it.
4. The commits are split such that you can review the first which is the
"actual" change, and the second is added redirects so that the first
doesn't break links elsewhere.
---------
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2023-04-28 06:33:41 +03:00
|
|
|
|
如果从本页中没有找到你需要的内容,请访问 [帮助页面]({{< relref "support.zh-cn.md" >}})
|