mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 14:53:34 +01:00
faa28b5a44
Move `public/*` to `public/assets/*` Some old PRs (like #15219) introduced inconsistent directory system. For example: why the local directory "public" is accessed by `http://site/assets`? How to serve the ".well-known" files properly in the public directory? For convention rules, the "public" directory is widely used for the website's root directory. It shouldn't be an exception for Gitea. So, this PR makes the things consistent: * `http://site/assets/foo` means `{CustomPath}/public/assets/foo`. * `{CustomPath}/public/.well-known` and `{CustomPath}/public/robots.txt` can be used in the future. This PR is also a prerequisite for a clear solution for: * #21942 * #25892 * discourse.gitea.io: [.well-known path serving custom files behind proxy?](https://discourse.gitea.io/t/well-known-path-serving-custom-files-behind-proxy/5445/1) This PR is breaking for users who have custom "public" files (CSS/JS). After getting approvals, I will update the documents. ---- ## ⚠️ BREAKING ⚠️ If you have files in your "custom/public/" folder, please move them to "custom/public/assets/". --------- Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Giteabot <teabot@gitea.io>
98 lines
4.8 KiB
Markdown
98 lines
4.8 KiB
Markdown
<p align="center">
|
||
<a href="https://gitea.io/">
|
||
<img alt="Gitea" src="https://raw.githubusercontent.com/go-gitea/gitea/main/public/assets/img/gitea.svg" width="220"/>
|
||
</a>
|
||
</p>
|
||
<h1 align="center">Gitea - Git with a cup of tea</h1>
|
||
|
||
<p align="center">
|
||
<a href="https://drone.gitea.io/go-gitea/gitea" title="Build Status">
|
||
<img src="https://drone.gitea.io/api/badges/go-gitea/gitea/status.svg?ref=refs/heads/main">
|
||
</a>
|
||
<a href="https://discord.gg/Gitea" title="Join the Discord chat at https://discord.gg/Gitea">
|
||
<img src="https://img.shields.io/discord/322538954119184384.svg">
|
||
</a>
|
||
<a href="https://app.codecov.io/gh/go-gitea/gitea" title="Codecov">
|
||
<img src="https://codecov.io/gh/go-gitea/gitea/branch/main/graph/badge.svg">
|
||
</a>
|
||
<a href="https://goreportcard.com/report/code.gitea.io/gitea" title="Go Report Card">
|
||
<img src="https://goreportcard.com/badge/code.gitea.io/gitea">
|
||
</a>
|
||
<a href="https://pkg.go.dev/code.gitea.io/gitea" title="GoDoc">
|
||
<img src="https://pkg.go.dev/badge/code.gitea.io/gitea?status.svg">
|
||
</a>
|
||
<a href="https://github.com/go-gitea/gitea/releases/latest" title="GitHub release">
|
||
<img src="https://img.shields.io/github/release/go-gitea/gitea.svg">
|
||
</a>
|
||
<a href="https://www.codetriage.com/go-gitea/gitea" title="Help Contribute to Open Source">
|
||
<img src="https://www.codetriage.com/go-gitea/gitea/badges/users.svg">
|
||
</a>
|
||
<a href="https://opencollective.com/gitea" title="Become a backer/sponsor of gitea">
|
||
<img src="https://opencollective.com/gitea/tiers/backers/badge.svg?label=backers&color=brightgreen">
|
||
</a>
|
||
<a href="https://opensource.org/licenses/MIT" title="License: MIT">
|
||
<img src="https://img.shields.io/badge/License-MIT-blue.svg">
|
||
</a>
|
||
<a href="https://gitpod.io/#https://github.com/go-gitea/gitea">
|
||
<img
|
||
src="https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod"
|
||
alt="Contribute with Gitpod"
|
||
/>
|
||
</a>
|
||
<a href="https://crowdin.com/project/gitea" title="Crowdin">
|
||
<img src="https://badges.crowdin.net/gitea/localized.svg">
|
||
</a>
|
||
<a href="https://www.tickgit.com/browse?repo=github.com/go-gitea/gitea&branch=main" title="TODOs">
|
||
<img src="https://badgen.net/https/api.tickgit.com/badgen/github.com/go-gitea/gitea/main">
|
||
</a>
|
||
<a href="https://app.bountysource.com/teams/gitea" title="Bountysource">
|
||
<img src="https://img.shields.io/bountysource/team/gitea/activity">
|
||
</a>
|
||
</p>
|
||
|
||
<p align="center">
|
||
<a href="README.md">View this document in English</a>
|
||
</p>
|
||
|
||
## 目标
|
||
|
||
Gitea 的首要目标是创建一个极易安装,运行非常快速,安装和使用体验良好的自建 Git 服务。我们采用 Go 作为后端语言,这使我们只要生成一个可执行程序即可。并且他还支持跨平台,支持 Linux, macOS 和 Windows 以及各种架构,除了 x86,amd64,还包括 ARM 和 PowerPC。
|
||
|
||
如果您想试用一下,请访问 [在线Demo](https://try.gitea.io/)!
|
||
|
||
## 提示
|
||
|
||
1. **开始贡献代码之前请确保你已经看过了 [贡献者向导(英文)](CONTRIBUTING.md)**.
|
||
2. 所有的安全问题,请私下发送邮件给 **security@gitea.io**。谢谢!
|
||
3. 如果你要使用API,请参见 [API 文档](https://godoc.org/code.gitea.io/sdk/gitea).
|
||
|
||
## 文档
|
||
|
||
关于如何安装请访问我们的 [文档站](https://docs.gitea.io/zh-cn/),如果没有找到对应的文档,你也可以通过 [Discord - 英文](https://discord.gg/gitea) 和 QQ群 328432459 来和我们交流。
|
||
|
||
## 贡献流程
|
||
|
||
Fork -> Patch -> Push -> Pull Request
|
||
|
||
## 翻译
|
||
|
||
多语言翻译是基于Crowdin进行的.
|
||
[![Crowdin](https://badges.crowdin.net/gitea/localized.svg)](https://crowdin.com/project/gitea)
|
||
|
||
## 作者
|
||
|
||
* [Maintainers](https://github.com/orgs/go-gitea/people)
|
||
* [Contributors](https://github.com/go-gitea/gitea/graphs/contributors)
|
||
* [Translators](options/locale/TRANSLATORS)
|
||
|
||
## 授权许可
|
||
|
||
本项目采用 MIT 开源授权许可证,完整的授权说明已放置在 [LICENSE](https://github.com/go-gitea/gitea/blob/main/LICENSE) 文件中。
|
||
|
||
## 截图
|
||
|
||
|![Dashboard](https://dl.gitea.com/screenshots/home_timeline.png)|![User Profile](https://dl.gitea.com/screenshots/user_profile.png)|![Global Issues](https://dl.gitea.com/screenshots/global_issues.png)|
|
||
|:---:|:---:|:---:|
|
||
|![Branches](https://dl.gitea.com/screenshots/branches.png)|![Web Editor](https://dl.gitea.com/screenshots/web_editor.png)|![Activity](https://dl.gitea.com/screenshots/activity.png)|
|
||
|![New Migration](https://dl.gitea.com/screenshots/migration.png)|![Migrating](https://dl.gitea.com/screenshots/migration.gif)|![Pull Request View](https://image.ibb.co/e02dSb/6.png)
|
||
![Pull Request Dark](https://dl.gitea.com/screenshots/pull_requests_dark.png)|![Diff Review Dark](https://dl.gitea.com/screenshots/review_dark.png)|![Diff Dark](https://dl.gitea.com/screenshots/diff_dark.png)|
|