上传
This commit is contained in:
parent
9a277d5ee2
commit
0e807db84d
26
README.md
26
README.md
@ -4,13 +4,31 @@
|
||||
## 适应版本
|
||||
- Gitea v1.20+
|
||||
|
||||
## 仓库路径树
|
||||
```
|
||||
gitea-github-theme
|
||||
├─README.md
|
||||
├─public
|
||||
│ ├─css
|
||||
│ │ └─theme-github.css
|
||||
│ └─js
|
||||
│ └─theme-github.js
|
||||
└─templates
|
||||
└─home.tmpl
|
||||
```
|
||||
|
||||
## 安装
|
||||
1. 将 `theme-github.css` 文件移动到 `gitea/public/assets/css`, 不存在此文件夹请自行创建
|
||||
2. 修改 Gitea 配置文件 `gitea/conf/app.ini`, 在文中找到或文档末尾添加
|
||||
- 寻找你的 Gitea 环境地址, 管理后台 -> 应用配置 -> App Data Path
|
||||
- 主题
|
||||
- 创建 `public/css`, 将 `theme-github.css` 文件移入
|
||||
- 修改 Gitea 配置文件 `gitea/conf/app.ini`, 在文中找到或文档末尾添加:
|
||||
```ini
|
||||
[ui]
|
||||
THEME = gitea,arc-green,github
|
||||
THEMES = gitea,arc-green,github
|
||||
DEFAULT_THEME = github
|
||||
```
|
||||
3. 重启 Gitea, 并应用 `github` 主题
|
||||
- 主页
|
||||
- 创建 `templates`, 将 `home.tmpl` 文件移入
|
||||
- 重启 Gitea
|
||||
|
||||
> 详情请查阅 [Gitea 文档](https://docs.gitea.com/zh-cn/administration/customizing-gitea)
|
0
public/js/theme-github.js
Normal file
0
public/js/theme-github.js
Normal file
0
templates/home.tmpl
Normal file
0
templates/home.tmpl
Normal file
Loading…
x
Reference in New Issue
Block a user