Skip to content

Commit

Permalink
i18n: 支持 theme.yaml i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
HowieHz committed Nov 23, 2024
1 parent 7c9b1b1 commit 6c7158f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/exclude-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.github/
.husky/
.vscode/
i18n-settings
i18n-settings/
node_modules/
screenshots/
src/
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
zip -9 -r howiehz-higan-cn.zip .
rm settings.yaml
rm annotation-settings.yaml
rm settings.yaml annotation-settings.yaml theme.yaml
mv ~/work/halo-theme-higan-hz/halo-theme-higan-hz/settings.yaml settings.yaml
mv ~/work/halo-theme-higan-hz/halo-theme-higan-hz/annotation-settings.yaml annotation-settings.yaml
zip -9 -r howiehz-higan-cn.zip settings.yaml annotation-settings.yaml
mv ~/work/halo-theme-higan-hz/halo-theme-higan-hz/theme.yaml theme.yaml
zip -9 -r howiehz-higan-cn.zip settings.yaml annotation-settings.yaml theme.yaml
mv howiehz-higan-cn.zip ~/builds/target
- name: Zip Theme in English
Expand All @@ -50,11 +50,11 @@ jobs:
zip -9 -r howiehz-higan-en.zip .
rm settings.yaml
rm annotation-settings.yaml
rm settings.yaml annotation-settings.yaml theme.yaml
mv ~/work/halo-theme-higan-hz/halo-theme-higan-hz/i18n-settings/settings.en.yaml settings.yaml
mv ~/work/halo-theme-higan-hz/halo-theme-higan-hz/i18n-settings/annotation-settings.en.yaml annotation-settings.yaml
zip -9 -r howiehz-higan-en.zip settings.yaml annotation-settings.yaml
mv ~/work/halo-theme-higan-hz/halo-theme-higan-hz/i18n-settings/theme.en.yaml theme.yaml
zip -9 -r howiehz-higan-en.zip settings.yaml annotation-settings.yaml theme.yaml
mv howiehz-higan-en.zip ~/builds/target
- name: Upload Theme Build Target
Expand Down
21 changes: 21 additions & 0 deletions i18n-settings/theme.en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: theme.halo.run/v1alpha1
kind: Theme
metadata:
name: howiehz-higan
spec:
displayName: higan-HowieHz-Modified
author:
name: HowieHz
website: https://howiehz.top
description: "Life and death are for this shore, nirvana is for the other shore; suffering without joy is for this shore, no suffering and no joy is for the other shore... It represents the spiritual pursuit of all good things, and also represents the endless cycle of life and death, just as this theme is divided into black and white, yin and yang, towards death and rebirth."
logo: /themes/howiehz-higan/assets/images/logo.png
homepage: https://github.com/howiehz/halo-theme-higan-hz
repo: https://github.com/howiehz/halo-theme-higan-hz.git
issues: https://github.com/howiehz/halo-theme-higan-hz/issues
settingName: howiehz-higan-setting
configMapName: howiehz-higan-configmap
version: 1.12.0
requires: ">=2.1.0"
license:
- name: "MIT"
url: "https://github.com/howiehz/halo-theme-higan-hz/blob/main/LICENSE"

0 comments on commit 6c7158f

Please sign in to comment.