Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 适用的主题配置的工具。

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/theme

npx @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/theme

npx @halo-dev/convert-theme-config-to-next settings
```

转换完成之后需要修改 `metadata.name`。