@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:[oml2dOptions](https://oml2d.hacxy.cn/api/interfaces/Options.html)
64
+ * Type:[WidgetOptions](https://github.com/hacxy/l2d-widget)
65
65
 
66
66
  为网站提供一个 Live2D 看板组件。
67
67
 
68
68
  :::tip 一点说明
69
- 通过内置 [oh-my-live2d](https://oml2d.hacxy.cn) 实现, 可以通过 `oml2d` 选项配置。
69
+ 通过内置 [l2d-widget](https://github.com/hacxy/l2d-widget) 实现, 可以通过 `oml2d` 选项配置。
70
70
 
71
- 通过这个能力可以快速加入并定制属于自己的看板娘, 开启只需要为其传递一个 [配置选项](https://oml2d.hacxy.cn/api/interfaces/Options.html) 即可
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
- mobileDisplay: true,
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
  ![](https://loclink-1259720482.cos.ap-beijing.myqcloud.com/image/%E5%BD%95%E5%B1%8F2024-03-11%2023.51.51.gif)
91
90
 
92
- 之后您还可以前往[配置选项](https://oml2d.hacxy.cn/options/Options.html)查阅更多自定义内容
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
- "oh-my-live2d": "^0.17.0"
100
+ "l2d-widget": "^0.1.0"
102
101
  }
103
102
  }
104
103
  ```
@@ -10,7 +10,7 @@
10
10
  "serve": "vitepress serve docs"
11
11
  },
12
12
  "dependencies": {
13
- "@sugarat/theme": "^0.5.20"
13
+ "@sugarat/theme": "^0.5.22"
14
14
  },
15
15
  "directories": {
16
16
  "doc": "docs"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sugarat/create-theme",
3
- "version": "0.0.99",
3
+ "version": "0.0.101",
4
4
  "description": "简约风的 Vitepress 博客主题,sugarat vitepress blog theme",
5
5
  "author": "粥里有勺糖",
6
6
  "license": "MIT",