Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/halo-sigs/convert-theme-config-to-next
将 Halo 1.5 的主题配置自动转换为 Halo 2.0 适用的主题配置的工具。
https://github.com/halo-sigs/convert-theme-config-to-next
halo-theme
Last synced: 24 days ago
JSON representation
将 Halo 1.5 的主题配置自动转换为 Halo 2.0 适用的主题配置的工具。
- Host: GitHub
- URL: https://github.com/halo-sigs/convert-theme-config-to-next
- Owner: halo-sigs
- Created: 2022-09-22T14:08:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-04T04:02:01.000Z (about 2 years ago)
- Last Synced: 2024-12-02T05:09:47.088Z (about 1 month ago)
- Topics: halo-theme
- Language: JavaScript
- Size: 38.1 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @halo-dev/convert-theme-config-to-next
将 Halo 1.5 的主题配置自动转换为 Halo 2.0 适用的主题配置。
## 使用
### theme.yaml
```bash
npx @halo-dev/convert-theme-config-to-next theme -i path/to/theme.yaml
```或者
```bash
cd path/to/themenpx @halo-dev/convert-theme-config-to-next theme
```转换完成之后需要修改 `metadata.name` `spec.settingName` `spec.configMapName`。
### settings.yaml
```bash
npx @halo-dev/convert-theme-config-to-next settings -i path/to/settings.yaml
```或者
```bash
cd path/to/themenpx @halo-dev/convert-theme-config-to-next settings
```转换完成之后需要修改 `metadata.name`。