docs: update theme readme

This commit is contained in:
JustSong 2024-01-07 18:59:26 +08:00
parent 903aaeded0
commit 9c42c7dfd9
2 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,8 @@
1. 在 `web` 文件夹下新建一个文件夹,文件夹名为主题名。 1. 在 `web` 文件夹下新建一个文件夹,文件夹名为主题名。
2. 把你的主题文件放到这个文件夹下。 2. 把你的主题文件放到这个文件夹下。
3. 修改 `package.json` 文件,把 `build` 命令改为:`"build": "react-scripts build && mv -f build ../build/default"`,其中 `default` 为你的主题名。 3. 修改你的 `package.json` 文件,把 `build` 命令改为:`"build": "react-scripts build && mv -f build ../build/default"`,其中 `default` 为你的主题名。
4. 修改 `common/constants.go` 中的 `ValidThemes`,把你的主题名称注册进去。
## 主题列表 ## 主题列表

View File

@ -1,2 +0,0 @@
default
berry