@sugarat/create-theme 0.0.99 → 0.0.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -61,14 +61,14 @@ const blogTheme = getThemeConfig({
|
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
## oml2d - 看板娘集成
|
|
64
|
-
* Type:[
|
|
64
|
+
* Type:[WidgetOptions](https://github.com/hacxy/l2d-widget)
|
|
65
65
|
|
|
66
66
|
为网站提供一个 Live2D 看板组件。
|
|
67
67
|
|
|
68
68
|
:::tip 一点说明
|
|
69
|
-
通过内置 [
|
|
69
|
+
通过内置 [l2d-widget](https://github.com/hacxy/l2d-widget) 实现, 可以通过 `oml2d` 选项配置。
|
|
70
70
|
|
|
71
|
-
通过这个能力可以快速加入并定制属于自己的看板娘,
|
|
71
|
+
通过这个能力可以快速加入并定制属于自己的看板娘, 开启只需要为其传递一个配置选项即可
|
|
72
72
|
:::
|
|
73
73
|
|
|
74
74
|
以下是一个简单的使用示例,当模型加载成功时它将出现在您网站的左下角。
|
|
@@ -76,8 +76,7 @@ const blogTheme = getThemeConfig({
|
|
|
76
76
|
```ts
|
|
77
77
|
const blogTheme = getThemeConfig({
|
|
78
78
|
oml2d: {
|
|
79
|
-
|
|
80
|
-
models: [
|
|
79
|
+
model: [
|
|
81
80
|
{
|
|
82
81
|
path: 'https://registry.npmmirror.com/oml2d-models/latest/files/models/Senko_Normals/senko.model3.json'
|
|
83
82
|
}
|
|
@@ -89,7 +88,7 @@ const blogTheme = getThemeConfig({
|
|
|
89
88
|
|
|
90
89
|

|
|
91
90
|
|
|
92
|
-
之后您还可以前往[
|
|
91
|
+
之后您还可以前往 [l2d-widget 文档](https://github.com/hacxy/l2d-widget) 查阅更多自定义内容
|
|
93
92
|
|
|
94
93
|
:::tip 版本说明
|
|
95
94
|
由于时间原因,主题内置的版本不一定都是最新的,可以通过 `resolutions` 配置指定要使用的版本。
|
|
@@ -98,7 +97,7 @@ const blogTheme = getThemeConfig({
|
|
|
98
97
|
```json
|
|
99
98
|
{
|
|
100
99
|
"resolutions": {
|
|
101
|
-
"
|
|
100
|
+
"l2d-widget": "^0.1.0"
|
|
102
101
|
}
|
|
103
102
|
}
|
|
104
103
|
```
|