From ca7207db06a2ad7e68c034b934f0453fa77e2634 Mon Sep 17 00:00:00 2001 From: lutinglt Date: Fri, 28 Nov 2025 19:30:41 +0800 Subject: [PATCH] update readme --- README.md | 8 ++++---- README_CN.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7b6394f..5b13349 100644 --- a/README.md +++ b/README.md @@ -46,16 +46,16 @@ accepted. ## Installation -1. Download the latest CSS theme file from the release page and place it in the `gitea/public/assets/css` directory +1. Download the latest CSS theme file from the release page and place it in the `data/gitea/public/assets/css` directory (This directory may not be available by default and needs to be manually created) -2. Modify `gitea/conf/app.ini` and append the CSS filename without the `theme-` prefix to the end of `THEMES` under the +2. Modify `data/gitea/conf/app.ini` and append the CSS filename without the `theme-` prefix to the end of `THEMES` under the `[ui]` section 3. Restart Gitea 4. Check the theme in the settings Example: If the theme filename is `theme-github-dark.css`, add `github-dark` to the end of `THEMES` -Example `gitea/conf/app.ini`: +Example `data/gitea/conf/app.ini`: ```ini [ui] @@ -71,7 +71,7 @@ For details, please refer to the Gitea documentation ### Template File Installation (Optional) -1. Download the latest template files from the release page and place them in the `gitea/templates` directory (This +1. Download the latest template files from the release page and place them in the `data/gitea/templates` directory (This directory may not be available by default and needs to be manually created) 2. Restart Gitea diff --git a/README_CN.md b/README_CN.md index ea20450..de683eb 100644 --- a/README_CN.md +++ b/README_CN.md @@ -41,14 +41,14 @@ Gitea 理论上小版本号变更不会修改前端布局, 所以主题的小版 ## 安装 -1. 在发布页下载最新的 CSS 主题文件放入 `gitea/public/assets/css` 目录下 (默认可能没有此目录需手动创建) -2. 修改 `gitea/conf/app.ini`,并将 CSS 文件名去掉 `theme-` 的名称附加到 `[ui]` 下的 `THEMES` 末尾 +1. 在发布页下载最新的 CSS 主题文件放入 `data/gitea/public/assets/css` 目录下 (默认可能没有此目录需手动创建) +2. 修改 `data/gitea/conf/app.ini`,并将 CSS 文件名去掉 `theme-` 的名称附加到 `[ui]` 下的 `THEMES` 末尾 3. 重启 Gitea 4. 在设置中查看主题 例: 主题文件名为 `theme-github-dark.css`,则添加 `github-dark` 到 `THEMES` 末尾 -`gitea/conf/app.ini` 例: +`data/gitea/conf/app.ini` 例: ```ini [ui] @@ -64,7 +64,7 @@ THEMES = gitea-auto, gitea-light, gitea-dark, github-auto, github-light, github- ### 模板文件安装 (可选) -1. 在发布页下载最新的模板文件放入 `gitea/templates` 目录下 (默认可能没有此目录需手动创建) +1. 在发布页下载最新的模板文件放入 `data/gitea/templates` 目录下 (默认可能没有此目录需手动创建) 2. 重启 Gitea > [!IMPORTANT]