Skip to content

Commit 14665b0

Browse files
committed
🎉 Init commit
1 parent 08c3436 commit 14665b0

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
* README*.md
1818
* theme.css
1919

20-
Note: The theme.js is deprecated, it will be removed in the future, see [this issue](https://github.com/siyuan-note/siyuan/issues/8178) for more details.
20+
Note: The theme.js is deprecated, it will be removed in the future,
21+
see [this issue](https://github.com/siyuan-note/siyuan/issues/8178) for more details.
2122

2223
## theme.json
2324

@@ -27,6 +28,10 @@ Note: The theme.js is deprecated, it will be removed in the future, see [this is
2728
"author": "Vanessa",
2829
"url": "https://github.com/siyuan-note/theme-sample",
2930
"version": "0.0.1",
31+
"displayName": {
32+
"default": "Theme Sample",
33+
"zh_CN": "主题示例"
34+
},
3035
"description": {
3136
"default": "This is a theme sample",
3237
"zh_CN": "这是一个主题示例"
@@ -58,6 +63,9 @@ Note: The theme.js is deprecated, it will be removed in the future, see [this is
5863
* `author`: Theme author name
5964
* `url`: Theme repo URL
6065
* `version`: Theme version number, it is recommended to follow the [semver](https://semver.org/) specification
66+
* `displayName`: Widget display name, mainly used for display in the marketplace list, supports multiple languages
67+
* `default`: Default language, must exist
68+
* `zh_CN`, `en_US` and other languages: optional, it is recommended to provide at least Chinese and English
6169
* `description`: Theme description, mainly used for display in the marketplace list, supports multiple languages
6270
* `default`: Default language, must exist
6371
* `zh_CN`, `en_US` and other languages: optional, it is recommended to provide at least Chinese and English

README_zh_CN.md

+7
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
"author": "Vanessa",
2727
"url": "https://github.com/siyuan-note/theme-sample",
2828
"version": "0.0.1",
29+
"displayName": {
30+
"default": "Theme Sample",
31+
"zh_CN": "主题示例"
32+
},
2933
"description": {
3034
"default": "This is a theme sample",
3135
"zh_CN": "这是一个主题示例"
@@ -56,6 +60,9 @@
5660
* `author`:主题作者名
5761
* `url`:主题仓库地址
5862
* `version`:主题版本号,建议遵循 [semver](https://semver.org/lang/zh-CN/) 规范
63+
* `displayName`:模板显示名称,主要用于模板集市列表中显示,支持多语言
64+
* `default`:默认语言,必须存在
65+
* `zh_CN``en_US` 等其他语言:可选,建议至少提供中文和英文
5966
* `description`:主题描述,主要用于主题集市列表中显示,支持多语言
6067
* `default`:默认语言,必须存在
6168
* `zh_CN``en_US` 等其他语言:可选,建议至少提供中文和英文

theme.json

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"author": "Vanessa",
44
"url": "https://github.com/siyuan-note/theme-sample",
55
"version": "0.0.1",
6+
"displayName": {
7+
"default": "Theme Sample",
8+
"zh_CN": "主题示例"
9+
},
610
"description": {
711
"default": "This is a theme sample",
812
"zh_CN": "这是一个主题示例"

0 commit comments

Comments
 (0)