0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 01:04:36 +01:00
gitea/README_ZH.md
wxiaoguang faa28b5a44
Move public asset files to the proper directory (#25907)
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>
2023-07-18 18:06:43 +02:00

4.8 KiB
Raw Blame History

Gitea

Gitea - Git with a cup of tea

Contribute with Gitpod

View this document in English

目标

Gitea 的首要目标是创建一个极易安装,运行非常快速,安装和使用体验良好的自建 Git 服务。我们采用 Go 作为后端语言,这使我们只要生成一个可执行程序即可。并且他还支持跨平台,支持 Linux, macOS 和 Windows 以及各种架构,除了 x86amd64还包括 ARM 和 PowerPC。

如果您想试用一下,请访问 在线Demo

提示

  1. 开始贡献代码之前请确保你已经看过了 贡献者向导(英文).
  2. 所有的安全问题,请私下发送邮件给 security@gitea.io。谢谢!
  3. 如果你要使用API请参见 API 文档.

文档

关于如何安装请访问我们的 文档站,如果没有找到对应的文档,你也可以通过 Discord - 英文 和 QQ群 328432459 来和我们交流。

贡献流程

Fork -> Patch -> Push -> Pull Request

翻译

多语言翻译是基于Crowdin进行的. Crowdin

作者

授权许可

本项目采用 MIT 开源授权许可证,完整的授权说明已放置在 LICENSE 文件中。

截图

Dashboard User Profile Global Issues
Branches Web Editor Activity
New Migration Migrating Pull Request View
Pull Request Dark Diff Review Dark Diff Dark