From 0e807db84dcbbf08fc0eac10d069ba624596dc33 Mon Sep 17 00:00:00 2001 From: Chish Date: Sun, 24 Sep 2023 03:03:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 32 +++++++++++++++---- .../css/theme-github.css | 0 public/js/theme-github.js | 0 templates/home.tmpl | 0 4 files changed, 25 insertions(+), 7 deletions(-) rename theme-github.css => public/css/theme-github.css (100%) create mode 100644 public/js/theme-github.js create mode 100644 templates/home.tmpl diff --git a/README.md b/README.md index 6409b67..1ebea99 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,31 @@ ## 适应版本 - Gitea v1.20+ -## 安装 -1. 将 `theme-github.css` 文件移动到 `gitea/public/assets/css`, 不存在此文件夹请自行创建 -2. 修改 Gitea 配置文件 `gitea/conf/app.ini`, 在文中找到或文档末尾添加 -```ini -[ui] -THEME = gitea,arc-green,github +## 仓库路径树 ``` -3. 重启 Gitea, 并应用 `github` 主题 +gitea-github-theme + ├─README.md + ├─public + │ ├─css + │ │ └─theme-github.css + │ └─js + │ └─theme-github.js + └─templates + └─home.tmpl +``` + +## 安装 +- 寻找你的 Gitea 环境地址, 管理后台 -> 应用配置 -> App Data Path +- 主题 + - 创建 `public/css`, 将 `theme-github.css` 文件移入 + - 修改 Gitea 配置文件 `gitea/conf/app.ini`, 在文中找到或文档末尾添加: + ```ini + [ui] + THEMES = gitea,arc-green,github + DEFAULT_THEME = github + ``` +- 主页 + - 创建 `templates`, 将 `home.tmpl` 文件移入 +- 重启 Gitea > 详情请查阅  [Gitea 文档](https://docs.gitea.com/zh-cn/administration/customizing-gitea) \ No newline at end of file diff --git a/theme-github.css b/public/css/theme-github.css similarity index 100% rename from theme-github.css rename to public/css/theme-github.css diff --git a/public/js/theme-github.js b/public/js/theme-github.js new file mode 100644 index 0000000..e69de29 diff --git a/templates/home.tmpl b/templates/home.tmpl new file mode 100644 index 0000000..e69de29