Skip to content

Commit 258382e

Browse files
committed
Merge remote-tracking branch 'giteaofficial/main'
* giteaofficial/main: [skip ci] Updated licenses and gitignores Update documents to fix some links (go-gitea#26885) clarify aspects of the dump command (go-gitea#26887) Relocate the `RSS user feed` button (go-gitea#26882) Use Go 1.21 and update dependencies (go-gitea#26878) Update docs about attachment path (go-gitea#26883) Refactor "shortsha" (go-gitea#26877) Fix wrong review requested number (go-gitea#26784) Refactor `og:description` to limit the max length (go-gitea#26876) Reorder blocks in vue SFCs (go-gitea#26874) Make it posible to customize nav text color via css var (go-gitea#26807) Enable djlint H008 and fix issues (go-gitea#26869) Improve opengraph previews (go-gitea#26851) Add more descriptive error on forgot password page (go-gitea#26848) Allow users with write permissions for issues to add attachments with API (go-gitea#26837) Move licenses.txt to /assets directory (go-gitea#26866) # Conflicts: # templates/base/footer_content.tmpl
2 parents 92a4a33 + a38cf86 commit 258382e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+917
-943
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ cpu.out
7575
/public/assets/js
7676
/public/assets/css
7777
/public/assets/fonts
78+
/public/assets/licenses.txt
7879
/public/assets/img/webpack
7980
/vendor
8081
/web_src/fomantic/node_modules

cmd/dump.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ It can be used for backup and capture Gitea server image to send to maintainer`,
128128
&cli.StringFlag{
129129
Name: "database",
130130
Aliases: []string{"d"},
131-
Usage: "Specify the database SQL syntax",
131+
Usage: "Specify the database SQL syntax: sqlite3, mysql, mssql, postgres",
132132
},
133133
&cli.BoolFlag{
134134
Name: "skip-repository",

custom/conf/app.example.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1824,8 +1824,9 @@ LEVEL = Info
18241824
;; Currently, only `minio` is supported.
18251825
;SERVE_DIRECT = false
18261826
;;
1827-
;; Path for attachments. Defaults to `data/attachments` only available when STORAGE_TYPE is `local`
1828-
;PATH = data/attachments
1827+
;; Path for attachments. Defaults to `attachments`. Only available when STORAGE_TYPE is `local`
1828+
;; Relative paths will be resolved to `${AppDataPath}/${attachment.PATH}`
1829+
;PATH = attachments
18291830
;;
18301831
;; Minio endpoint to connect only available when STORAGE_TYPE is `minio`
18311832
;MINIO_ENDPOINT = localhost:9000

docs/content/administration/command-line.en-us.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@ in the current directory.
334334
- `--skip-attachment-data`: Skip dumping of attachment data. Optional.
335335
- `--skip-package-data`: Skip dumping of package data. Optional.
336336
- `--skip-log`: Skip dumping of log data. Optional.
337-
- `--database`, `-d`: Specify the database SQL syntax. Optional.
337+
- `--database`, `-d`: Specify the database SQL syntax. Optional (supported arguments: sqlite3, mysql, mssql, postgres).
338338
- `--verbose`, `-V`: If provided, shows additional details. Optional.
339-
- `--type`: Set the dump output format. Optional. (default: zip)
339+
- `--type`: Set the dump output format. Optional. (formats: zip, tar, tar.sz, tar.gz, tar.xz, tar.bz2, tar.br, tar.lz4, tar.zst default: zip).
340340
- Examples:
341341
- `gitea dump`
342342
- `gitea dump --verbose`

docs/content/administration/config-cheat-sheet.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ Default templates for project boards:
822822
- `MAX_FILES`: **5**: Maximum number of attachments that can be uploaded at once.
823823
- `STORAGE_TYPE`: **local**: Storage type for attachments, `local` for local disk or `minio` for s3 compatible object storage service, default is `local` or other name defined with `[storage.xxx]`
824824
- `SERVE_DIRECT`: **false**: Allows the storage driver to redirect to authenticated URLs to serve files directly. Currently, only Minio/S3 is supported via signed URLs, local does nothing.
825-
- `PATH`: **data/attachments**: Path to store attachments only available when STORAGE_TYPE is `local`
825+
- `PATH`: **attachments**: Path to store attachments only available when STORAGE_TYPE is `local`, relative paths will be resolved to `${AppDataPath}/${attachment.PATH}`.
826826
- `MINIO_ENDPOINT`: **localhost:9000**: Minio endpoint to connect only available when STORAGE_TYPE is `minio`
827827
- `MINIO_ACCESS_KEY_ID`: Minio accessKeyID to connect only available when STORAGE_TYPE is `minio`
828828
- `MINIO_SECRET_ACCESS_KEY`: Minio secretAccessKey to connect only available when STORAGE_TYPE is `minio`

docs/content/administration/config-cheat-sheet.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ Gitea 创建以下非唯一队列:
788788
- `MAX_FILES`: **5**: 一次最多上传的附件数量。
789789
- `STORAGE_TYPE`: **local**: 附件的存储类型,`local` 表示本地磁盘,`minio` 表示兼容 S3 的对象存储服务,如果未设置将使用默认值 `local` 或其他在 `[storage.xxx]` 中定义的名称。
790790
- `SERVE_DIRECT`: **false**: 允许存储驱动器重定向到经过身份验证的 URL 以直接提供文件。目前,只支持 Minio/S3 通过签名 URL 提供支持,local 不会执行任何操作。
791-
- `PATH`: **data/attachments**: 存储附件的路径,仅当 STORAGE_TYPE 为 `local` 时可用。
791+
- `PATH`: **attachments**: 存储附件的路径,仅当 STORAGE_TYPE 为 `local` 时可用。如果是相对路径,将会被解析为 `${AppDataPath}/${attachment.PATH}`.
792792
- `MINIO_ENDPOINT`: **localhost:9000**: Minio 端点以连接,仅当 STORAGE_TYPE 为 `minio` 时可用。
793793
- `MINIO_ACCESS_KEY_ID`: Minio accessKeyID 以连接,仅当 STORAGE_TYPE 为 `minio` 时可用。
794794
- `MINIO_SECRET_ACCESS_KEY`: Minio secretAccessKey 以连接,仅当 STORAGE_TYPE 为 `minio` 时可用。

docs/content/administration/external-renderers.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ it is just a matter of:
2424
- add some configuration to your `app.ini` file
2525
- restart your Gitea instance
2626

27-
This supports rendering of whole files. If you want to render code blocks in markdown you would need to do something with javascript. See some examples on the [Customizing Gitea](../customizing-gitea) page.
27+
This supports rendering of whole files. If you want to render code blocks in markdown you would need to do something with javascript. See some examples on the [Customizing Gitea](administration/customizing-gitea.md) page.
2828

2929
## Installing external binaries
3030

docs/content/administration/https-support.en-us.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ KEY_FILE = key.pem
3636
```
3737

3838
Note that if your certificate is signed by a third party certificate authority (i.e. not self-signed), then cert.pem should contain the certificate chain. The server certificate must be the first entry in cert.pem, followed by the intermediaries in order (if any). The root certificate does not have to be included because the connecting client must already have it in order to estalbish the trust relationship.
39-
To learn more about the config values, please checkout the [Config Cheat Sheet](../config-cheat-sheet#server-server).
39+
To learn more about the config values, please checkout the [Config Cheat Sheet](administration/config-cheat-sheet.md#server-server).
4040

4141
For the `CERT_FILE` or `KEY_FILE` field, the file path is relative to the `GITEA_CUSTOM` environment variable when it is a relative path. It can be an absolute path as well.
4242

@@ -85,11 +85,11 @@ ACME_DIRECTORY=https
8585
8686
```
8787

88-
To learn more about the config values, please checkout the [Config Cheat Sheet](../config-cheat-sheet#server-server).
88+
To learn more about the config values, please checkout the [Config Cheat Sheet](administration/config-cheat-sheet.md#server-server).
8989

9090
## Using a reverse proxy
9191

92-
Setup up your reverse proxy as shown in the [reverse proxy guide](../reverse-proxies).
92+
Setup up your reverse proxy as shown in the [reverse proxy guide](administration/reverse-proxies.md).
9393

9494
After that, enable HTTPS by following one of these guides:
9595

docs/content/administration/https-support.zh-cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ ACME_DIRECTORY=https
8282
8383
```
8484

85-
要了解关于配置, 请访问 [配置备忘单](../config-cheat-sheet#server-server)获取更多信息
85+
要了解关于配置, 请访问 [配置备忘单](administration/config-cheat-sheet.md#server-server)获取更多信息
8686

8787
## 使用反向代理服务器
8888

89-
按照 [reverse proxy guide](../reverse-proxies) 的规则设置你的反向代理服务器
89+
按照 [reverse proxy guide](administration/reverse-proxies.md) 的规则设置你的反向代理服务器
9090

9191
然后,按照下面的向导启用 HTTPS:
9292

docs/content/usage/labels.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ menu:
2727

2828
标签具有必填的名称和颜色,可选的描述,以及必须是独占的或非独占的(见下面的“作用域标签”)。
2929

30-
当您创建一个仓库时,可以通过使用 `工单标签(Issue Labels)` 选项来选择标签集。该选项列出了一些在您的实例上 [全局配置的可用标签集](../administration/customizing-gitea/#labels)。在创建仓库时,这些标签也将被创建。
30+
当您创建一个仓库时,可以通过使用 `工单标签(Issue Labels)` 选项来选择标签集。该选项列出了一些在您的实例上 [全局配置的可用标签集](administration/customizing-gitea.md#labels)。在创建仓库时,这些标签也将被创建。
3131

3232
## 作用域标签
3333

0 commit comments

Comments
 (0)