From 7219c0e44d420d01013f2d72ba9fb761b6ef4475 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 1 Oct 2026 08:28:50 +0000 Subject: [PATCH] docs: fix the REPOSITORY_AVATAR_FALLBACK_IMAGE default (#569) The cheat sheet lists `/img/repo_default.png` as the `REPOSITORY_AVATAR_FALLBACK_IMAGE` default, but public files moved under `/assets` in Gitea 1.15 (https://github.com/go-gitea/gitea/pull/15219), so that path 404s. Like `app.example.ini` in https://github.com/go-gitea/gitea/pull/39514, document the default as empty, falling back to Gitea's builtin repository avatar, and note that a custom value is used as-is without the sub-path. Applies to all documented versions and translations. _Written by Claude Code (Opus 5.5)._ Reviewed-on: https://gitea.com/gitea/docs/pulls/569 Reviewed-by: wxiaoguang <29147+wxiaoguang@noreply.gitea.com> Co-authored-by: silverwind --- docs/administration/config-cheat-sheet.md | 2 +- .../current/administration/config-cheat-sheet.md | 2 +- .../version-1.22/administration/config-cheat-sheet.md | 2 +- .../version-1.23/administration/config-cheat-sheet.md | 2 +- .../version-1.24/administration/config-cheat-sheet.md | 2 +- .../version-1.25/administration/config-cheat-sheet.md | 2 +- .../version-1.26/administration/config-cheat-sheet.md | 2 +- .../version-1.27/administration/config-cheat-sheet.md | 2 +- .../version-28/administration/config-cheat-sheet.md | 2 +- .../current/administration/config-cheat-sheet.md | 2 +- .../version-1.22/administration/config-cheat-sheet.md | 2 +- .../version-1.24/administration/config-cheat-sheet.md | 2 +- .../version-1.25/administration/config-cheat-sheet.md | 2 +- .../version-1.26/administration/config-cheat-sheet.md | 2 +- .../version-1.27/administration/config-cheat-sheet.md | 2 +- .../version-28/administration/config-cheat-sheet.md | 2 +- .../version-1.22/administration/config-cheat-sheet.md | 2 +- .../version-1.23/administration/config-cheat-sheet.md | 2 +- .../version-1.24/administration/config-cheat-sheet.md | 2 +- .../version-1.25/administration/config-cheat-sheet.md | 2 +- .../version-1.26/administration/config-cheat-sheet.md | 2 +- .../version-1.27/administration/config-cheat-sheet.md | 2 +- versioned_docs/version-28/administration/config-cheat-sheet.md | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/docs/administration/config-cheat-sheet.md b/docs/administration/config-cheat-sheet.md index 4188abc0..2073cca3 100644 --- a/docs/administration/config-cheat-sheet.md +++ b/docs/administration/config-cheat-sheet.md @@ -943,7 +943,7 @@ In-Reply-To = - none = no avatar will be displayed - random = random avatar will be generated - image = default image will be used (which is set in `REPOSITORY_AVATAR_FALLBACK_IMAGE`) -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: Image used as default repository avatar (if `REPOSITORY_AVATAR_FALLBACK` is set to image and none was uploaded) +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: Image used as default repository avatar (if `REPOSITORY_AVATAR_FALLBACK` is set to image and none was uploaded). The value is used as-is, without prepending the sub-path of `ROOT_URL`. Empty uses Gitea's builtin repository avatar. ## Project (`project`) diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/administration/config-cheat-sheet.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/administration/config-cheat-sheet.md index df413b18..4f7cc114 100644 --- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/administration/config-cheat-sheet.md +++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/administration/config-cheat-sheet.md @@ -811,7 +811,7 @@ In-Reply-To = - none = 不显示任何头像 - random = 生成随机头像 - image = 使用默认图像(在 `REPOSITORY_AVATAR_FALLBACK_IMAGE` 中设置),如果设置为 image 并且未上传任何图像。 -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: 作为默认仓库头像的图像(如果将 `REPOSITORY_AVATAR_FALLBACK` 设置为 image 并且没有上传图像)。 +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: 作为默认仓库头像的图像(如果将 `REPOSITORY_AVATAR_FALLBACK` 设置为 image 并且没有上传图像)。该值将原样使用,不会自动添加 `ROOT_URL` 中的子路径。留空则使用 Gitea 内置的仓库头像。 ## 项目 (`project`) diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.22/administration/config-cheat-sheet.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.22/administration/config-cheat-sheet.md index 8c785531..db05ee60 100644 --- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.22/administration/config-cheat-sheet.md +++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.22/administration/config-cheat-sheet.md @@ -761,7 +761,7 @@ Gitea 创建以下非唯一队列: - none = 不显示任何头像 - random = 生成随机头像 - image = 使用默认图像(在 `REPOSITORY_AVATAR_FALLBACK_IMAGE` 中设置),如果设置为 image 并且未上传任何图像。 -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: 作为默认仓库头像的图像(如果将 `REPOSITORY_AVATAR_FALLBACK` 设置为 image 并且没有上传图像)。 +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: 作为默认仓库头像的图像(如果将 `REPOSITORY_AVATAR_FALLBACK` 设置为 image 并且没有上传图像)。该值将原样使用,不会自动添加 `ROOT_URL` 中的子路径。留空则使用 Gitea 内置的仓库头像。 ## 项目 (`project`) diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.23/administration/config-cheat-sheet.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.23/administration/config-cheat-sheet.md index 75db3c79..5751252f 100644 --- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.23/administration/config-cheat-sheet.md +++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.23/administration/config-cheat-sheet.md @@ -766,7 +766,7 @@ Gitea 创建以下非唯一队列: - none = 不显示任何头像 - random = 生成随机头像 - image = 使用默认图像(在 `REPOSITORY_AVATAR_FALLBACK_IMAGE` 中设置),如果设置为 image 并且未上传任何图像。 -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: 作为默认仓库头像的图像(如果将 `REPOSITORY_AVATAR_FALLBACK` 设置为 image 并且没有上传图像)。 +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: 作为默认仓库头像的图像(如果将 `REPOSITORY_AVATAR_FALLBACK` 设置为 image 并且没有上传图像)。该值将原样使用,不会自动添加 `ROOT_URL` 中的子路径。留空则使用 Gitea 内置的仓库头像。 ## 项目 (`project`) diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.24/administration/config-cheat-sheet.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.24/administration/config-cheat-sheet.md index 225549a1..324d21ab 100644 --- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.24/administration/config-cheat-sheet.md +++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.24/administration/config-cheat-sheet.md @@ -781,7 +781,7 @@ Gitea 创建以下非唯一队列: - none = 不显示任何头像 - random = 生成随机头像 - image = 使用默认图像(在 `REPOSITORY_AVATAR_FALLBACK_IMAGE` 中设置),如果设置为 image 并且未上传任何图像。 -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: 作为默认仓库头像的图像(如果将 `REPOSITORY_AVATAR_FALLBACK` 设置为 image 并且没有上传图像)。 +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: 作为默认仓库头像的图像(如果将 `REPOSITORY_AVATAR_FALLBACK` 设置为 image 并且没有上传图像)。该值将原样使用,不会自动添加 `ROOT_URL` 中的子路径。留空则使用 Gitea 内置的仓库头像。 ## 项目 (`project`) diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.25/administration/config-cheat-sheet.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.25/administration/config-cheat-sheet.md index 225549a1..324d21ab 100644 --- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.25/administration/config-cheat-sheet.md +++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.25/administration/config-cheat-sheet.md @@ -781,7 +781,7 @@ Gitea 创建以下非唯一队列: - none = 不显示任何头像 - random = 生成随机头像 - image = 使用默认图像(在 `REPOSITORY_AVATAR_FALLBACK_IMAGE` 中设置),如果设置为 image 并且未上传任何图像。 -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: 作为默认仓库头像的图像(如果将 `REPOSITORY_AVATAR_FALLBACK` 设置为 image 并且没有上传图像)。 +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: 作为默认仓库头像的图像(如果将 `REPOSITORY_AVATAR_FALLBACK` 设置为 image 并且没有上传图像)。该值将原样使用,不会自动添加 `ROOT_URL` 中的子路径。留空则使用 Gitea 内置的仓库头像。 ## 项目 (`project`) diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.26/administration/config-cheat-sheet.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.26/administration/config-cheat-sheet.md index e548165f..91237ec5 100644 --- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.26/administration/config-cheat-sheet.md +++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.26/administration/config-cheat-sheet.md @@ -839,7 +839,7 @@ In-Reply-To = - none = 不显示任何头像 - random = 生成随机头像 - image = 使用默认图像(在 `REPOSITORY_AVATAR_FALLBACK_IMAGE` 中设置),如果设置为 image 并且未上传任何图像。 -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: 作为默认仓库头像的图像(如果将 `REPOSITORY_AVATAR_FALLBACK` 设置为 image 并且没有上传图像)。 +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: 作为默认仓库头像的图像(如果将 `REPOSITORY_AVATAR_FALLBACK` 设置为 image 并且没有上传图像)。该值将原样使用,不会自动添加 `ROOT_URL` 中的子路径。留空则使用 Gitea 内置的仓库头像。 ## 项目 (`project`) diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.27/administration/config-cheat-sheet.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.27/administration/config-cheat-sheet.md index 50fbbea9..4fd44e7a 100644 --- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.27/administration/config-cheat-sheet.md +++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.27/administration/config-cheat-sheet.md @@ -844,7 +844,7 @@ In-Reply-To = - none = 不显示任何头像 - random = 生成随机头像 - image = 使用默认图像(在 `REPOSITORY_AVATAR_FALLBACK_IMAGE` 中设置),如果设置为 image 并且未上传任何图像。 -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: 作为默认仓库头像的图像(如果将 `REPOSITORY_AVATAR_FALLBACK` 设置为 image 并且没有上传图像)。 +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: 作为默认仓库头像的图像(如果将 `REPOSITORY_AVATAR_FALLBACK` 设置为 image 并且没有上传图像)。该值将原样使用,不会自动添加 `ROOT_URL` 中的子路径。留空则使用 Gitea 内置的仓库头像。 ## 项目 (`project`) diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/version-28/administration/config-cheat-sheet.md b/i18n/zh-cn/docusaurus-plugin-content-docs/version-28/administration/config-cheat-sheet.md index df413b18..4f7cc114 100644 --- a/i18n/zh-cn/docusaurus-plugin-content-docs/version-28/administration/config-cheat-sheet.md +++ b/i18n/zh-cn/docusaurus-plugin-content-docs/version-28/administration/config-cheat-sheet.md @@ -811,7 +811,7 @@ In-Reply-To = - none = 不显示任何头像 - random = 生成随机头像 - image = 使用默认图像(在 `REPOSITORY_AVATAR_FALLBACK_IMAGE` 中设置),如果设置为 image 并且未上传任何图像。 -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: 作为默认仓库头像的图像(如果将 `REPOSITORY_AVATAR_FALLBACK` 设置为 image 并且没有上传图像)。 +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: 作为默认仓库头像的图像(如果将 `REPOSITORY_AVATAR_FALLBACK` 设置为 image 并且没有上传图像)。该值将原样使用,不会自动添加 `ROOT_URL` 中的子路径。留空则使用 Gitea 内置的仓库头像。 ## 项目 (`project`) diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/current/administration/config-cheat-sheet.md b/i18n/zh-tw/docusaurus-plugin-content-docs/current/administration/config-cheat-sheet.md index a95d9ef4..b149bb0e 100644 --- a/i18n/zh-tw/docusaurus-plugin-content-docs/current/administration/config-cheat-sheet.md +++ b/i18n/zh-tw/docusaurus-plugin-content-docs/current/administration/config-cheat-sheet.md @@ -816,7 +816,7 @@ In-Reply-To = - none = 不顯示任何頭像 - random = 生成隨機頭像 - image = 使用預設圖像(在 `REPOSITORY_AVATAR_FALLBACK_IMAGE` 中設定),如果設定為 image 並且未上傳任何圖像。 -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: 作為預設儲存庫頭像的圖像(如果將 `REPOSITORY_AVATAR_FALLBACK` 設定為 image 並且沒有上傳圖像)。 +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: 作為預設儲存庫頭像的圖像(如果將 `REPOSITORY_AVATAR_FALLBACK` 設定為 image 並且沒有上傳圖像)。該值將原樣使用,不會自動加上 `ROOT_URL` 中的子路徑。留空則使用 Gitea 內建的儲存庫頭像。 ## 專案 (`project`) diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.22/administration/config-cheat-sheet.md b/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.22/administration/config-cheat-sheet.md index d0b58138..ff3bc908 100644 --- a/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.22/administration/config-cheat-sheet.md +++ b/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.22/administration/config-cheat-sheet.md @@ -766,7 +766,7 @@ Gitea 建立以下非唯一隊列: - none = 不顯示任何頭像 - random = 生成隨機頭像 - image = 使用預設圖像(在 `REPOSITORY_AVATAR_FALLBACK_IMAGE` 中設定),如果設定為 image 並且未上傳任何圖像。 -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: 作為預設儲存庫頭像的圖像(如果將 `REPOSITORY_AVATAR_FALLBACK` 設定為 image 並且沒有上傳圖像)。 +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: 作為預設儲存庫頭像的圖像(如果將 `REPOSITORY_AVATAR_FALLBACK` 設定為 image 並且沒有上傳圖像)。該值將原樣使用,不會自動加上 `ROOT_URL` 中的子路徑。留空則使用 Gitea 內建的儲存庫頭像。 ## 專案 (`project`) diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.24/administration/config-cheat-sheet.md b/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.24/administration/config-cheat-sheet.md index a107bda1..6199a684 100644 --- a/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.24/administration/config-cheat-sheet.md +++ b/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.24/administration/config-cheat-sheet.md @@ -781,7 +781,7 @@ Gitea 建立以下非唯一隊列: - none = 不顯示任何頭像 - random = 生成隨機頭像 - image = 使用預設圖像(在 `REPOSITORY_AVATAR_FALLBACK_IMAGE` 中設定),如果設定為 image 並且未上傳任何圖像。 -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: 作為預設存放庫頭像的圖像(如果將 `REPOSITORY_AVATAR_FALLBACK` 設定為 image 並且沒有上傳圖像)。 +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: 作為預設存放庫頭像的圖像(如果將 `REPOSITORY_AVATAR_FALLBACK` 設定為 image 並且沒有上傳圖像)。該值將原樣使用,不會自動加上 `ROOT_URL` 中的子路徑。留空則使用 Gitea 內建的存放庫頭像。 ## 專案 (`project`) diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.25/administration/config-cheat-sheet.md b/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.25/administration/config-cheat-sheet.md index 9c28aa86..71b2a784 100644 --- a/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.25/administration/config-cheat-sheet.md +++ b/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.25/administration/config-cheat-sheet.md @@ -782,7 +782,7 @@ Gitea 建立以下非唯一隊列: - none = 不顯示任何頭像 - random = 生成隨機頭像 - image = 使用預設圖像(在 `REPOSITORY_AVATAR_FALLBACK_IMAGE` 中設定),如果設定為 image 並且未上傳任何圖像。 -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: 作為預設儲存庫頭像的圖像(如果將 `REPOSITORY_AVATAR_FALLBACK` 設定為 image 並且沒有上傳圖像)。 +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: 作為預設儲存庫頭像的圖像(如果將 `REPOSITORY_AVATAR_FALLBACK` 設定為 image 並且沒有上傳圖像)。該值將原樣使用,不會自動加上 `ROOT_URL` 中的子路徑。留空則使用 Gitea 內建的儲存庫頭像。 ## 專案 (`project`) diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.26/administration/config-cheat-sheet.md b/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.26/administration/config-cheat-sheet.md index 93528b33..5cdd7593 100644 --- a/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.26/administration/config-cheat-sheet.md +++ b/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.26/administration/config-cheat-sheet.md @@ -844,7 +844,7 @@ In-Reply-To = - none = 不顯示任何頭像 - random = 生成隨機頭像 - image = 使用預設圖像(在 `REPOSITORY_AVATAR_FALLBACK_IMAGE` 中設定),如果設定為 image 並且未上傳任何圖像。 -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: 作為預設儲存庫頭像的圖像(如果將 `REPOSITORY_AVATAR_FALLBACK` 設定為 image 並且沒有上傳圖像)。 +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: 作為預設儲存庫頭像的圖像(如果將 `REPOSITORY_AVATAR_FALLBACK` 設定為 image 並且沒有上傳圖像)。該值將原樣使用,不會自動加上 `ROOT_URL` 中的子路徑。留空則使用 Gitea 內建的儲存庫頭像。 ## 專案 (`project`) diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.27/administration/config-cheat-sheet.md b/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.27/administration/config-cheat-sheet.md index 8235d696..f8246abf 100644 --- a/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.27/administration/config-cheat-sheet.md +++ b/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.27/administration/config-cheat-sheet.md @@ -849,7 +849,7 @@ In-Reply-To = - none = 不顯示任何頭像 - random = 生成隨機頭像 - image = 使用預設圖像(在 `REPOSITORY_AVATAR_FALLBACK_IMAGE` 中設定),如果設定為 image 並且未上傳任何圖像。 -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: 作為預設儲存庫頭像的圖像(如果將 `REPOSITORY_AVATAR_FALLBACK` 設定為 image 並且沒有上傳圖像)。 +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: 作為預設儲存庫頭像的圖像(如果將 `REPOSITORY_AVATAR_FALLBACK` 設定為 image 並且沒有上傳圖像)。該值將原樣使用,不會自動加上 `ROOT_URL` 中的子路徑。留空則使用 Gitea 內建的儲存庫頭像。 ## 專案 (`project`) diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/version-28/administration/config-cheat-sheet.md b/i18n/zh-tw/docusaurus-plugin-content-docs/version-28/administration/config-cheat-sheet.md index a95d9ef4..b149bb0e 100644 --- a/i18n/zh-tw/docusaurus-plugin-content-docs/version-28/administration/config-cheat-sheet.md +++ b/i18n/zh-tw/docusaurus-plugin-content-docs/version-28/administration/config-cheat-sheet.md @@ -816,7 +816,7 @@ In-Reply-To = - none = 不顯示任何頭像 - random = 生成隨機頭像 - image = 使用預設圖像(在 `REPOSITORY_AVATAR_FALLBACK_IMAGE` 中設定),如果設定為 image 並且未上傳任何圖像。 -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: 作為預設儲存庫頭像的圖像(如果將 `REPOSITORY_AVATAR_FALLBACK` 設定為 image 並且沒有上傳圖像)。 +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: 作為預設儲存庫頭像的圖像(如果將 `REPOSITORY_AVATAR_FALLBACK` 設定為 image 並且沒有上傳圖像)。該值將原樣使用,不會自動加上 `ROOT_URL` 中的子路徑。留空則使用 Gitea 內建的儲存庫頭像。 ## 專案 (`project`) diff --git a/versioned_docs/version-1.22/administration/config-cheat-sheet.md b/versioned_docs/version-1.22/administration/config-cheat-sheet.md index dedfba79..b97ae6fc 100644 --- a/versioned_docs/version-1.22/administration/config-cheat-sheet.md +++ b/versioned_docs/version-1.22/administration/config-cheat-sheet.md @@ -829,7 +829,7 @@ and - none = no avatar will be displayed - random = random avatar will be generated - image = default image will be used (which is set in `REPOSITORY_AVATAR_FALLBACK_IMAGE`) -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: Image used as default repository avatar (if `REPOSITORY_AVATAR_FALLBACK` is set to image and none was uploaded) +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: Image used as default repository avatar (if `REPOSITORY_AVATAR_FALLBACK` is set to image and none was uploaded). The value is used as-is, without prepending the sub-path of `ROOT_URL`. Empty uses Gitea's builtin repository avatar. ## Project (`project`) diff --git a/versioned_docs/version-1.23/administration/config-cheat-sheet.md b/versioned_docs/version-1.23/administration/config-cheat-sheet.md index cac288f7..3154f7c5 100644 --- a/versioned_docs/version-1.23/administration/config-cheat-sheet.md +++ b/versioned_docs/version-1.23/administration/config-cheat-sheet.md @@ -876,7 +876,7 @@ In-Reply-To = - none = no avatar will be displayed - random = random avatar will be generated - image = default image will be used (which is set in `REPOSITORY_AVATAR_FALLBACK_IMAGE`) -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: Image used as default repository avatar (if `REPOSITORY_AVATAR_FALLBACK` is set to image and none was uploaded) +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: Image used as default repository avatar (if `REPOSITORY_AVATAR_FALLBACK` is set to image and none was uploaded). The value is used as-is, without prepending the sub-path of `ROOT_URL`. Empty uses Gitea's builtin repository avatar. ## Project (`project`) diff --git a/versioned_docs/version-1.24/administration/config-cheat-sheet.md b/versioned_docs/version-1.24/administration/config-cheat-sheet.md index 6eb030dc..4103e0da 100644 --- a/versioned_docs/version-1.24/administration/config-cheat-sheet.md +++ b/versioned_docs/version-1.24/administration/config-cheat-sheet.md @@ -908,7 +908,7 @@ In-Reply-To = - none = no avatar will be displayed - random = random avatar will be generated - image = default image will be used (which is set in `REPOSITORY_AVATAR_FALLBACK_IMAGE`) -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: Image used as default repository avatar (if `REPOSITORY_AVATAR_FALLBACK` is set to image and none was uploaded) +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: Image used as default repository avatar (if `REPOSITORY_AVATAR_FALLBACK` is set to image and none was uploaded). The value is used as-is, without prepending the sub-path of `ROOT_URL`. Empty uses Gitea's builtin repository avatar. ## Project (`project`) diff --git a/versioned_docs/version-1.25/administration/config-cheat-sheet.md b/versioned_docs/version-1.25/administration/config-cheat-sheet.md index ac26df05..a7cfe618 100644 --- a/versioned_docs/version-1.25/administration/config-cheat-sheet.md +++ b/versioned_docs/version-1.25/administration/config-cheat-sheet.md @@ -910,7 +910,7 @@ In-Reply-To = - none = no avatar will be displayed - random = random avatar will be generated - image = default image will be used (which is set in `REPOSITORY_AVATAR_FALLBACK_IMAGE`) -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: Image used as default repository avatar (if `REPOSITORY_AVATAR_FALLBACK` is set to image and none was uploaded) +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: Image used as default repository avatar (if `REPOSITORY_AVATAR_FALLBACK` is set to image and none was uploaded). The value is used as-is, without prepending the sub-path of `ROOT_URL`. Empty uses Gitea's builtin repository avatar. ## Project (`project`) diff --git a/versioned_docs/version-1.26/administration/config-cheat-sheet.md b/versioned_docs/version-1.26/administration/config-cheat-sheet.md index 0dcb638b..74b941ff 100644 --- a/versioned_docs/version-1.26/administration/config-cheat-sheet.md +++ b/versioned_docs/version-1.26/administration/config-cheat-sheet.md @@ -940,7 +940,7 @@ In-Reply-To = - none = no avatar will be displayed - random = random avatar will be generated - image = default image will be used (which is set in `REPOSITORY_AVATAR_FALLBACK_IMAGE`) -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: Image used as default repository avatar (if `REPOSITORY_AVATAR_FALLBACK` is set to image and none was uploaded) +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: Image used as default repository avatar (if `REPOSITORY_AVATAR_FALLBACK` is set to image and none was uploaded). The value is used as-is, without prepending the sub-path of `ROOT_URL`. Empty uses Gitea's builtin repository avatar. ## Project (`project`) diff --git a/versioned_docs/version-1.27/administration/config-cheat-sheet.md b/versioned_docs/version-1.27/administration/config-cheat-sheet.md index e1a783d7..b2938f54 100644 --- a/versioned_docs/version-1.27/administration/config-cheat-sheet.md +++ b/versioned_docs/version-1.27/administration/config-cheat-sheet.md @@ -950,7 +950,7 @@ In-Reply-To = - none = no avatar will be displayed - random = random avatar will be generated - image = default image will be used (which is set in `REPOSITORY_AVATAR_FALLBACK_IMAGE`) -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: Image used as default repository avatar (if `REPOSITORY_AVATAR_FALLBACK` is set to image and none was uploaded) +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: Image used as default repository avatar (if `REPOSITORY_AVATAR_FALLBACK` is set to image and none was uploaded). The value is used as-is, without prepending the sub-path of `ROOT_URL`. Empty uses Gitea's builtin repository avatar. ## Project (`project`) diff --git a/versioned_docs/version-28/administration/config-cheat-sheet.md b/versioned_docs/version-28/administration/config-cheat-sheet.md index 4188abc0..2073cca3 100644 --- a/versioned_docs/version-28/administration/config-cheat-sheet.md +++ b/versioned_docs/version-28/administration/config-cheat-sheet.md @@ -943,7 +943,7 @@ In-Reply-To = - none = no avatar will be displayed - random = random avatar will be generated - image = default image will be used (which is set in `REPOSITORY_AVATAR_FALLBACK_IMAGE`) -- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **/img/repo_default.png**: Image used as default repository avatar (if `REPOSITORY_AVATAR_FALLBACK` is set to image and none was uploaded) +- `REPOSITORY_AVATAR_FALLBACK_IMAGE`: **_empty_**: Image used as default repository avatar (if `REPOSITORY_AVATAR_FALLBACK` is set to image and none was uploaded). The value is used as-is, without prepending the sub-path of `ROOT_URL`. Empty uses Gitea's builtin repository avatar. ## Project (`project`)