valaxy 0.20.1 → 0.20.3

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.20.1",
4
+ "version": "0.20.3",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -59,20 +59,20 @@
59
59
  "@antfu/install-pkg": "^0.4.1",
60
60
  "@antfu/utils": "^0.7.10",
61
61
  "@clack/prompts": "^0.7.0",
62
- "@iconify-json/ri": "^1.2.2",
62
+ "@iconify-json/ri": "^1.2.3",
63
63
  "@intlify/unplugin-vue-i18n": "4",
64
64
  "@types/katex": "^0.16.7",
65
65
  "@types/luxon": "^3.4.2",
66
- "@unhead/addons": "^1.11.10",
67
- "@unhead/schema-org": "^1.11.10",
68
- "@unhead/vue": "^1.11.10",
66
+ "@unhead/addons": "^1.11.11",
67
+ "@unhead/schema-org": "^1.11.11",
68
+ "@unhead/vue": "^1.11.11",
69
69
  "@vitejs/plugin-vue": "^5.1.4",
70
- "@vue/devtools-api": "^7.5.6",
71
- "@vueuse/core": "^11.1.0",
72
- "@vueuse/integrations": "^11.1.0",
70
+ "@vue/devtools-api": "^7.6.3",
71
+ "@vueuse/core": "^11.2.0",
72
+ "@vueuse/integrations": "^11.2.0",
73
73
  "consola": "^3.2.3",
74
74
  "critters": "^0.0.25",
75
- "cross-spawn": "^7.0.3",
75
+ "cross-spawn": "^7.0.5",
76
76
  "css-i18n": "^0.0.5",
77
77
  "date-fns": "^4.1.0",
78
78
  "date-fns-tz": "^3.2.0",
@@ -87,11 +87,11 @@
87
87
  "gray-matter": "^4.0.3",
88
88
  "hookable": "^5.5.3",
89
89
  "html-to-text": "^9.0.5",
90
- "jiti": "^2.3.3",
90
+ "jiti": "^2.4.0",
91
91
  "js-base64": "^3.7.7",
92
92
  "js-yaml": "^4.1.0",
93
93
  "katex": "^0.16.11",
94
- "lru-cache": "^11.0.1",
94
+ "lru-cache": "^11.0.2",
95
95
  "luxon": "^3.5.0",
96
96
  "markdown-it": "^14.1.0",
97
97
  "markdown-it-anchor": "^9.2.0",
@@ -103,35 +103,35 @@
103
103
  "markdown-it-table-of-contents": "^0.8.0",
104
104
  "markdown-it-task-lists": "^2.1.1",
105
105
  "medium-zoom": "^1.1.0",
106
- "mermaid": "^11.3.0",
106
+ "mermaid": "^11.4.0",
107
107
  "mlly": "^1.7.2",
108
108
  "nprogress": "^0.2.0",
109
109
  "open": "10.1.0",
110
- "ora": "^8.1.0",
110
+ "ora": "^8.1.1",
111
111
  "pascalcase": "^2.0.0",
112
112
  "pathe": "^1.1.2",
113
- "pinia": "^2.2.5",
113
+ "pinia": "^2.2.6",
114
114
  "qrcode": "^1.5.4",
115
115
  "resolve-global": "^2.0.0",
116
- "sass": "^1.80.5",
116
+ "sass": "^1.80.6",
117
117
  "shiki": "^1.22.2",
118
118
  "star-markdown-css": "^0.5.3",
119
- "unocss": "^0.63.6",
119
+ "unocss": "^0.64.0",
120
120
  "unplugin-vue-components": "^0.27.4",
121
121
  "unplugin-vue-markdown": "^0.26.2",
122
122
  "unplugin-vue-router": "^0.10.8",
123
123
  "vanilla-lazyload": "^19.1.3",
124
124
  "vite": "^5.4.10",
125
- "vite-plugin-vue-devtools": "^7.5.6",
125
+ "vite-plugin-vue-devtools": "^7.6.3",
126
126
  "vite-plugin-vue-layouts": "^0.11.0",
127
- "vite-ssg": "^0.24.0",
127
+ "vite-ssg": "^0.24.1",
128
128
  "vite-ssg-sitemap": "^0.8.1",
129
129
  "vue": "^3.5.12",
130
130
  "vue-i18n": "^10.0.4",
131
131
  "vue-router": "^4.4.5",
132
132
  "yargs": "^17.7.2",
133
- "@valaxyjs/devtools": "0.20.1",
134
- "@valaxyjs/utils": "0.20.1"
133
+ "@valaxyjs/devtools": "0.20.3",
134
+ "@valaxyjs/utils": "0.20.3"
135
135
  },
136
136
  "devDependencies": {
137
137
  "@mdit-vue/plugin-component": "^2.1.3",
@@ -152,10 +152,12 @@
152
152
  "@types/pascalcase": "^1.0.3",
153
153
  "@types/qrcode": "^1.5.5",
154
154
  "@types/yargs": "^17.0.33",
155
+ "cilicili": "^0.1.1",
155
156
  "diacritics": "^1.3.0",
156
157
  "gh-pages": "^6.2.0",
157
158
  "https-localhost": "^4.7.1",
158
- "rollup-plugin-visualizer": "^5.12.0"
159
+ "rollup-plugin-visualizer": "^5.12.0",
160
+ "table": "^6.8.2"
159
161
  },
160
162
  "scripts": {
161
163
  "build": "rimraf dist && tsup --splitting",
package/types/config.ts CHANGED
@@ -55,6 +55,8 @@ export interface SiteConfig {
55
55
  /**
56
56
  * alternative languages
57
57
  * @description 可选语言
58
+ * @en If you want to disable multi-language support for your site, you can set this to only include one language (e.g. `['en']`)
59
+ * @zh 如果你想要禁言站点的多语言支持,可以将此项设置为仅包含一个语言 (例如 `['zh-CN']`)
58
60
  * @default ['en', 'zh-CN']
59
61
  * @see https://ogp.me/#optional
60
62
  */
@@ -148,9 +150,13 @@ export interface SiteConfig {
148
150
  social: SocialLink[]
149
151
 
150
152
  /**
151
- * search
153
+ * @en search engine for your site
154
+ * @zh 搜索功能
152
155
  */
153
156
  search: {
157
+ /**
158
+ * @zh 是否启用
159
+ */
154
160
  enable: boolean
155
161
  /**
156
162
  * Search Type
@@ -179,8 +185,11 @@ export interface SiteConfig {
179
185
  */
180
186
  options: FuseOptions<FuseListItem> & {
181
187
  /**
188
+ * @en_US The fields to be searched.
189
+ * @zh_CN 搜索的字段
182
190
  * @default ['title', 'tags', 'categories', 'excerpt']
183
- * @description 搜索的字段
191
+ * @description:en-US List of keys that will be searched. This supports nested paths, weighted search, and searching in arrays of strings and objects
192
+ * @description:zh-CN 搜索将会涉及的字段列表,支持嵌套路径、加权搜索以及在字符串和对象数组中进行搜索
184
193
  * @see https://fusejs.io/api/options.html#keys
185
194
  */
186
195
  keys: FuseOptions<FuseListItem>['keys']
@@ -205,6 +214,10 @@ export interface SiteConfig {
205
214
  * @default 'https://unpkg.com/'
206
215
  */
207
216
  cdn: {
217
+ /**
218
+ * prefix for your third-party
219
+ * @default 'https://unpkg.com/'
220
+ */
208
221
  prefix: string
209
222
  }
210
223
 
@@ -253,6 +266,9 @@ export interface SiteConfig {
253
266
  * @default undefined 不显示内容
254
267
  */
255
268
  description?: string
269
+ /**
270
+ * @zh 赞助方式
271
+ */
256
272
  methods: {
257
273
  name: string
258
274
  url: string
@@ -387,21 +403,33 @@ export interface Pkg {
387
403
  }
388
404
 
389
405
  export interface ValaxyConfig<ThemeConfig = DefaultTheme.Config> {
406
+ /**
407
+ * @en Site **info** config. This affects info displayed on the site, and is independent of themes.
408
+ * @zh 站点**信息**配置,这部分内容面向站点展示,且在不同主题中也是通用的格式
409
+ * @see [站点配置 | Valaxy](https://valaxy.site/guide/config#%E7%AB%99%E7%82%B9%E9%85%8D%E7%BD%AE)
410
+ * @see [Site Config | Valaxy](https://valaxy.site/guide/config#site-config)
411
+ */
390
412
  siteConfig: SiteConfig
391
413
  /**
392
414
  * The name of theme
393
415
  * @description 主题名称
416
+ * @see 主题橱窗 [Valaxy Themes Gallery](https://valaxy.site/themes/gallery)
417
+ * @see 如何编写主题? [How to write a theme? | Valaxy](https://valaxy.site/themes/write)
418
+ * @see [默认 Yun 主题示例](https://yun.valaxy.site/)
394
419
  */
395
420
  theme: string
396
421
  /**
397
422
  * The config of theme
423
+ * @zh 请参考对应主题的相关文档
398
424
  * @description 主题配置
425
+ * @see [默认 Yun 主题文档](https://github.com/YunYouJun/valaxy/blob/main/packages/valaxy-theme-yun/docs/README.md)
399
426
  */
400
427
  themeConfig: ThemeConfig & {
401
428
  pkg: Pkg
402
429
  }
403
430
  /**
404
- * generated by runtime
431
+ * @en Generated in runtime, do not modify manually
432
+ * @zh 在运行时生成,请勿手动修改
405
433
  */
406
434
  runtimeConfig: RuntimeConfig
407
435
  }
package/types/node.ts CHANGED
@@ -1,4 +1,4 @@
1
- export interface FuseListItem {
1
+ export interface FuseListItem extends Record<string, any> {
2
2
  title: string
3
3
  excerpt?: string
4
4
  author: string