Skip to content

Commit 8122385

Browse files
committed
update readme
1 parent 5f69222 commit 8122385

4 files changed

Lines changed: 12 additions & 13 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
branches:
66
- main
77

8-
env:
9-
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
10-
118
jobs:
129
build:
1310
runs-on: ubuntu-latest
@@ -26,6 +23,10 @@ jobs:
2623
- "vite.config.ts"
2724
- "package.json"
2825
26+
- uses: actions/setup-node@v6
27+
with:
28+
node-version: 24
29+
2930
- name: Build theme
3031
id: build
3132
if: steps.changes.outputs.src == 'true'

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
permissions:
77
contents: write
88

9-
env:
10-
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
11-
129
jobs:
1310
release:
1411
runs-on: ubuntu-latest
1512
steps:
1613
- uses: actions/checkout@v6
14+
- uses: actions/setup-node@v6
15+
with:
16+
node-version: 24
1717
- name: Build theme
1818
run: |
1919
npm install

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ accepted.
3737

3838
> [!IMPORTANT]
3939
>
40-
> Because the project uses Lightning CSS to transpile CSS nesting code, it will contain a large number of :is()
41-
> selectors, and browsers below Chrome 88 are not supported. Using browsers below Chrome 88 may cause many styling
42-
> issues. Please update to Chrome 88 or above.
40+
> Because the project uses new CSS features, ensure styles are applied correctly by keeping Chrome/Edge >= 105,
41+
> Firefox >= 121, Safari >= 15.4
4342
4443
1. Download the latest CSS theme file from the release page and place it in the `data/gitea/public/assets/css` directory
4544
(This directory may not be available by default and needs to be manually created)
@@ -179,7 +178,7 @@ Add the following code at the beginning or end of the theme's CSS file
179178

180179
You might want to use the development version of the theme instead of the released version
181180

182-
Please ensure you have Node.js environment installed, Node.js 20 or above is recommended
181+
Please ensure you have Node.js environment installed, Node.js 24.12.0 or above is recommended
183182

184183
```bash
185184
git clone https://github.com/lutinglt/gitea-github-theme.git

README_CN.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ Gitea 理论上小版本号变更不会修改前端布局, 所以主题的小版
3535

3636
> [!IMPORTANT]
3737
>
38-
> 因为项目使用了 Lighting CSS 转译 CSS 嵌套代码, 所以会包含大量 :is() 选择器, 不支持 Chrome
39-
> 88 版本以下的浏览器使用 Chrome 88 以下的浏览器可能会出现大量样式问题, 请更新到 Chrome 88 以上版本
38+
> 因为项目使用了 CSS 新特性, 确保样式正确应用需保持 Chrome/Edge >= 105, Firefox >= 121, Safari >= 15.4
4039
4140
1. 在发布页下载最新的 CSS 主题文件放入 `data/gitea/public/assets/css` 目录下 (默认可能没有此目录需手动创建)
4241
2. 修改 `data/gitea/conf/app.ini`,并将 CSS 文件名去掉 `theme-` 的名称附加到 `[ui]` 下的 `THEMES` 末尾
@@ -173,7 +172,7 @@ THEMES = github-pink-auto, github-pink-light, github-pink-dark, github-pink-soft
173172

174173
也许你会想使用开发中的主题, 而不是发布的主题
175174

176-
请确保你已经安装了 Node.js 环境, 推荐使用 Node.js 20 或以上版本
175+
请确保你已经安装了 Node.js 环境, 推荐使用 Node.js 24.12.0 或以上版本
177176

178177
```bash
179178
git clone https://github.com/lutinglt/gitea-github-theme.git

0 commit comments

Comments
 (0)