valaxy 0.20.1 → 0.20.2

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSHLDAAJYcjs = require('../../chunk-SHLDAAJY.cjs');require('../../chunk-SWO32WYT.cjs');exports.cli = _chunkSHLDAAJYcjs.V; exports.run = _chunkSHLDAAJYcjs.W;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLFH2U2WQcjs = require('../../chunk-LFH2U2WQ.cjs');require('../../chunk-7EKNBB3E.cjs');exports.cli = _chunkLFH2U2WQcjs.V; exports.run = _chunkLFH2U2WQcjs.W;
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{V as a,W as b}from"../../chunk-G54Q6VIZ.mjs";import"../../chunk-FRSA4VPQ.mjs";export{a as cli,b as run};
2
+ import{V as a,W as b}from"../../chunk-N5526RM3.mjs";import"../../chunk-AUDFAOQV.mjs";export{a as cli,b as run};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSHLDAAJYcjs = require('../chunk-SHLDAAJY.cjs');require('../chunk-SWO32WYT.cjs');exports.ALL_ROUTE = _chunkSHLDAAJYcjs.e; exports.EXCERPT_SEPARATOR = _chunkSHLDAAJYcjs.b; exports.EXTERNAL_URL_RE = _chunkSHLDAAJYcjs.c; exports.PATHNAME_PROTOCOL_RE = _chunkSHLDAAJYcjs.d; exports.ViteValaxyPlugins = _chunkSHLDAAJYcjs.P; exports.build = _chunkSHLDAAJYcjs.Q; exports.cli = _chunkSHLDAAJYcjs.V; exports.createServer = _chunkSHLDAAJYcjs.U; exports.createValaxyLoader = _chunkSHLDAAJYcjs.O; exports.customElements = _chunkSHLDAAJYcjs.f; exports.defaultSiteConfig = _chunkSHLDAAJYcjs.r; exports.defaultValaxyConfig = _chunkSHLDAAJYcjs.v; exports.defaultViteConfig = _chunkSHLDAAJYcjs.g; exports.defineAddon = _chunkSHLDAAJYcjs.C; exports.defineConfig = _chunkSHLDAAJYcjs.x; exports.defineSiteConfig = _chunkSHLDAAJYcjs.s; exports.defineTheme = _chunkSHLDAAJYcjs.H; exports.defineUnoSetup = _chunkSHLDAAJYcjs.I; exports.defineValaxyAddon = _chunkSHLDAAJYcjs.B; exports.defineValaxyConfig = _chunkSHLDAAJYcjs.w; exports.defineValaxyTheme = _chunkSHLDAAJYcjs.G; exports.ensurePrefix = _chunkSHLDAAJYcjs.l; exports.generateClientRedirects = _chunkSHLDAAJYcjs.T; exports.getGitTimestamp = _chunkSHLDAAJYcjs.a; exports.getIndexHtml = _chunkSHLDAAJYcjs.N; exports.isExternal = _chunkSHLDAAJYcjs.j; exports.isInstalledGlobally = _chunkSHLDAAJYcjs.h; exports.isPath = _chunkSHLDAAJYcjs.n; exports.loadConfig = _chunkSHLDAAJYcjs.p; exports.loadConfigFromFile = _chunkSHLDAAJYcjs.q; exports.mergeValaxyConfig = _chunkSHLDAAJYcjs.z; exports.mergeViteConfigs = _chunkSHLDAAJYcjs.M; exports.postProcessForSSG = _chunkSHLDAAJYcjs.S; exports.processValaxyOptions = _chunkSHLDAAJYcjs.J; exports.resolveAddonsConfig = _chunkSHLDAAJYcjs.D; exports.resolveImportPath = _chunkSHLDAAJYcjs.i; exports.resolveOptions = _chunkSHLDAAJYcjs.K; exports.resolveSiteConfig = _chunkSHLDAAJYcjs.u; exports.resolveSiteConfigFromRoot = _chunkSHLDAAJYcjs.t; exports.resolveThemeConfigFromRoot = _chunkSHLDAAJYcjs.E; exports.resolveThemeValaxyConfig = _chunkSHLDAAJYcjs.L; exports.resolveUserThemeConfig = _chunkSHLDAAJYcjs.F; exports.resolveValaxyConfig = _chunkSHLDAAJYcjs.A; exports.resolveValaxyConfigFromRoot = _chunkSHLDAAJYcjs.y; exports.run = _chunkSHLDAAJYcjs.W; exports.slash = _chunkSHLDAAJYcjs.k; exports.ssgBuild = _chunkSHLDAAJYcjs.R; exports.toAtFS = _chunkSHLDAAJYcjs.m; exports.transformObject = _chunkSHLDAAJYcjs.o;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLFH2U2WQcjs = require('../chunk-LFH2U2WQ.cjs');require('../chunk-7EKNBB3E.cjs');exports.ALL_ROUTE = _chunkLFH2U2WQcjs.e; exports.EXCERPT_SEPARATOR = _chunkLFH2U2WQcjs.b; exports.EXTERNAL_URL_RE = _chunkLFH2U2WQcjs.c; exports.PATHNAME_PROTOCOL_RE = _chunkLFH2U2WQcjs.d; exports.ViteValaxyPlugins = _chunkLFH2U2WQcjs.P; exports.build = _chunkLFH2U2WQcjs.Q; exports.cli = _chunkLFH2U2WQcjs.V; exports.createServer = _chunkLFH2U2WQcjs.U; exports.createValaxyLoader = _chunkLFH2U2WQcjs.O; exports.customElements = _chunkLFH2U2WQcjs.f; exports.defaultSiteConfig = _chunkLFH2U2WQcjs.r; exports.defaultValaxyConfig = _chunkLFH2U2WQcjs.v; exports.defaultViteConfig = _chunkLFH2U2WQcjs.g; exports.defineAddon = _chunkLFH2U2WQcjs.C; exports.defineConfig = _chunkLFH2U2WQcjs.x; exports.defineSiteConfig = _chunkLFH2U2WQcjs.s; exports.defineTheme = _chunkLFH2U2WQcjs.H; exports.defineUnoSetup = _chunkLFH2U2WQcjs.I; exports.defineValaxyAddon = _chunkLFH2U2WQcjs.B; exports.defineValaxyConfig = _chunkLFH2U2WQcjs.w; exports.defineValaxyTheme = _chunkLFH2U2WQcjs.G; exports.ensurePrefix = _chunkLFH2U2WQcjs.l; exports.generateClientRedirects = _chunkLFH2U2WQcjs.T; exports.getGitTimestamp = _chunkLFH2U2WQcjs.a; exports.getIndexHtml = _chunkLFH2U2WQcjs.N; exports.isExternal = _chunkLFH2U2WQcjs.j; exports.isInstalledGlobally = _chunkLFH2U2WQcjs.h; exports.isPath = _chunkLFH2U2WQcjs.n; exports.loadConfig = _chunkLFH2U2WQcjs.p; exports.loadConfigFromFile = _chunkLFH2U2WQcjs.q; exports.mergeValaxyConfig = _chunkLFH2U2WQcjs.z; exports.mergeViteConfigs = _chunkLFH2U2WQcjs.M; exports.postProcessForSSG = _chunkLFH2U2WQcjs.S; exports.processValaxyOptions = _chunkLFH2U2WQcjs.J; exports.resolveAddonsConfig = _chunkLFH2U2WQcjs.D; exports.resolveImportPath = _chunkLFH2U2WQcjs.i; exports.resolveOptions = _chunkLFH2U2WQcjs.K; exports.resolveSiteConfig = _chunkLFH2U2WQcjs.u; exports.resolveSiteConfigFromRoot = _chunkLFH2U2WQcjs.t; exports.resolveThemeConfigFromRoot = _chunkLFH2U2WQcjs.E; exports.resolveThemeValaxyConfig = _chunkLFH2U2WQcjs.L; exports.resolveUserThemeConfig = _chunkLFH2U2WQcjs.F; exports.resolveValaxyConfig = _chunkLFH2U2WQcjs.A; exports.resolveValaxyConfigFromRoot = _chunkLFH2U2WQcjs.y; exports.run = _chunkLFH2U2WQcjs.W; exports.slash = _chunkLFH2U2WQcjs.k; exports.ssgBuild = _chunkLFH2U2WQcjs.R; exports.toAtFS = _chunkLFH2U2WQcjs.m; exports.transformObject = _chunkLFH2U2WQcjs.o;
@@ -24,7 +24,7 @@ import { SfcPluginOptions } from '@mdit-vue/plugin-sfc';
24
24
  import { TocPluginOptions } from '@mdit-vue/plugin-toc';
25
25
  import { Awaitable } from '@antfu/utils';
26
26
  import * as defu from 'defu';
27
- import { P as PartialDeep$1 } from '../config-DRImYfNf.cjs';
27
+ import { P as PartialDeep$1 } from '../config-BXn7sQx8.cjs';
28
28
  import 'yargs';
29
29
  import 'medium-zoom';
30
30
  import '@vueuse/integrations/useFuse';
@@ -98,13 +98,14 @@ interface MarkdownOptions {
98
98
  *
99
99
  * You can also pass an object with `light` and `dark` themes to support dual themes.
100
100
  *
101
- * @example { theme: 'github-dark' }
102
- * @example { theme: { light: 'github-light', dark: 'github-dark' } }
101
+ * @see You can use an existing theme. https://shiki.style/themes
102
+ * @see Or add your own theme. https://shiki.style/guide/load-theme
103
103
  *
104
- * You can use an existing theme.
105
- * @see https://shiki.style/themes
106
- * Or add your own theme.
107
- * @see https://shiki.style/guide/load-theme
104
+ * @example { theme: 'github-dark' }
105
+ * @example light and dark themes
106
+ * ```js
107
+ * { theme: { light: 'github-light', dark: 'github-dark' } }
108
+ * ```
108
109
  */
109
110
  theme?: ThemeOptions;
110
111
  /**
@@ -209,18 +210,21 @@ interface ValaxyExtendConfig {
209
210
  * @deprecated use `build.ignoreDeadLinks` instead
210
211
  */
211
212
  ignoreDeadLinks?: boolean | 'localhostLinks' | (string | RegExp | ((link: string) => boolean))[];
213
+ /**
214
+ * options for `valaxy build`
215
+ */
212
216
  build: {
213
217
  /**
214
218
  * Don't fail builds due to dead links.
215
- *
219
+ * @zh 忽略死链
216
220
  * @default false
217
221
  */
218
222
  ignoreDeadLinks?: boolean | 'localhostLinks' | (string | RegExp | ((link: string) => boolean))[];
219
223
  /**
220
224
  * Enable SSG for pagination
225
+ * @en When enabled, it will generate pagination pages for you. `/page/1`, `/page/2`, ...
226
+ * @zh 启用 SSG 分页,将单独构建分页页面 `/page/1`, `/page/2`, ...
221
227
  * @default false
222
- * When enabled, it will generate pagination pages for you.
223
- * `/page/1`, `/page/2`, ...
224
228
  */
225
229
  ssgForPagination: boolean;
226
230
  };
@@ -258,9 +262,15 @@ interface ValaxyExtendConfig {
258
262
  features: {
259
263
  /**
260
264
  * enable katex for global
265
+ * @see [Example | Valaxy](https://valaxy.site/examples/katex)
266
+ * @see https://katex.org/
261
267
  */
262
268
  katex: boolean;
263
269
  };
270
+ /**
271
+ * vite.config.ts options
272
+ * @see https://vite.dev/
273
+ */
264
274
  vite?: UserConfig;
265
275
  /**
266
276
  * @vitejs/plugin-vue options
@@ -269,9 +279,21 @@ interface ValaxyExtendConfig {
269
279
  vue?: Parameters<typeof Vue>[0] & {
270
280
  isCustomElement?: ((tag: string) => boolean)[];
271
281
  };
282
+ /**
283
+ * @see https://github.com/unplugin/unplugin-vue-components
284
+ */
272
285
  components?: Parameters<typeof Components>[0];
286
+ /**
287
+ * @see https://github.com/JohnCampionJr/vite-plugin-vue-layouts
288
+ */
273
289
  layouts?: Parameters<typeof Layouts>[0];
290
+ /**
291
+ * @see https://github.com/posva/unplugin-vue-router
292
+ */
274
293
  router?: Parameters<typeof Router>[0];
294
+ /**
295
+ * @see https://unocss.dev/config/
296
+ */
275
297
  unocss?: VitePluginConfig;
276
298
  /**
277
299
  * rollup-plugin-visualizer
@@ -280,6 +302,7 @@ interface ValaxyExtendConfig {
280
302
  visualizer?: PluginVisualizerOptions;
281
303
  /**
282
304
  * unocss presets
305
+ * @see https://unocss.dev/guide/presets
283
306
  */
284
307
  unocssPresets?: {
285
308
  uno?: Parameters<typeof presetUno>[0];
@@ -294,9 +317,15 @@ interface ValaxyExtendConfig {
294
317
  */
295
318
  devtools?: boolean;
296
319
  /**
297
- * for markdown
320
+ * @en config for markdown (include markdown-it plugins)
321
+ * @zh markdown 相关配置
322
+ * {@link MarkdownOptions}
298
323
  */
299
324
  markdown?: MarkdownOptions & Parameters<typeof Markdown>[0];
325
+ /**
326
+ * @en Extend markdown, you can modify the markdown content/excerpt
327
+ * @zh 扩展 markdown
328
+ */
300
329
  extendMd?: (ctx: {
301
330
  route: EditableTreeNode;
302
331
  data: Readonly<Record<string, any>>;
@@ -304,7 +333,30 @@ interface ValaxyExtendConfig {
304
333
  excerpt?: string;
305
334
  path: string;
306
335
  }) => void;
336
+ /**
337
+ * @en Addons system
338
+ * @zh 插件系统
339
+ * @see 为什么需要插件? [Why Addon? | Valaxy](https://valaxy.site/addons/why)
340
+ * @see 插件橱窗 [Addons Gallery | Valaxy](https://valaxy.site/addons/gallery)
341
+ * @example
342
+ * ```ts
343
+ * import { defineValaxyConfig } from 'valaxy'
344
+ * import { addonTest } from 'valaxy-addon-test'
345
+ *
346
+ * export default defineValaxyConfig({
347
+ * addons: [
348
+ * // we always recommend to use function, so that you can pass options
349
+ * addonTest(),
350
+ * ]
351
+ * })
352
+ * ```
353
+ */
307
354
  addons?: ValaxyAddons;
355
+ /**
356
+ * @en Hooks system, you can customize each stage of the lifecycle.
357
+ * @zh 钩子系统,你可以对生命周期的各个阶段进行定制。
358
+ * @see https://valaxy.site/guide/custom/hooks
359
+ */
308
360
  hooks?: Partial<ValaxyHooks>;
309
361
  }
310
362
  type ValaxyAddonLike = ValaxyAddon | false | null | undefined;
@@ -24,7 +24,7 @@ import { SfcPluginOptions } from '@mdit-vue/plugin-sfc';
24
24
  import { TocPluginOptions } from '@mdit-vue/plugin-toc';
25
25
  import { Awaitable } from '@antfu/utils';
26
26
  import * as defu from 'defu';
27
- import { P as PartialDeep$1 } from '../config-DRImYfNf.js';
27
+ import { P as PartialDeep$1 } from '../config-BXn7sQx8.js';
28
28
  import 'yargs';
29
29
  import 'medium-zoom';
30
30
  import '@vueuse/integrations/useFuse';
@@ -98,13 +98,14 @@ interface MarkdownOptions {
98
98
  *
99
99
  * You can also pass an object with `light` and `dark` themes to support dual themes.
100
100
  *
101
- * @example { theme: 'github-dark' }
102
- * @example { theme: { light: 'github-light', dark: 'github-dark' } }
101
+ * @see You can use an existing theme. https://shiki.style/themes
102
+ * @see Or add your own theme. https://shiki.style/guide/load-theme
103
103
  *
104
- * You can use an existing theme.
105
- * @see https://shiki.style/themes
106
- * Or add your own theme.
107
- * @see https://shiki.style/guide/load-theme
104
+ * @example { theme: 'github-dark' }
105
+ * @example light and dark themes
106
+ * ```js
107
+ * { theme: { light: 'github-light', dark: 'github-dark' } }
108
+ * ```
108
109
  */
109
110
  theme?: ThemeOptions;
110
111
  /**
@@ -209,18 +210,21 @@ interface ValaxyExtendConfig {
209
210
  * @deprecated use `build.ignoreDeadLinks` instead
210
211
  */
211
212
  ignoreDeadLinks?: boolean | 'localhostLinks' | (string | RegExp | ((link: string) => boolean))[];
213
+ /**
214
+ * options for `valaxy build`
215
+ */
212
216
  build: {
213
217
  /**
214
218
  * Don't fail builds due to dead links.
215
- *
219
+ * @zh 忽略死链
216
220
  * @default false
217
221
  */
218
222
  ignoreDeadLinks?: boolean | 'localhostLinks' | (string | RegExp | ((link: string) => boolean))[];
219
223
  /**
220
224
  * Enable SSG for pagination
225
+ * @en When enabled, it will generate pagination pages for you. `/page/1`, `/page/2`, ...
226
+ * @zh 启用 SSG 分页,将单独构建分页页面 `/page/1`, `/page/2`, ...
221
227
  * @default false
222
- * When enabled, it will generate pagination pages for you.
223
- * `/page/1`, `/page/2`, ...
224
228
  */
225
229
  ssgForPagination: boolean;
226
230
  };
@@ -258,9 +262,15 @@ interface ValaxyExtendConfig {
258
262
  features: {
259
263
  /**
260
264
  * enable katex for global
265
+ * @see [Example | Valaxy](https://valaxy.site/examples/katex)
266
+ * @see https://katex.org/
261
267
  */
262
268
  katex: boolean;
263
269
  };
270
+ /**
271
+ * vite.config.ts options
272
+ * @see https://vite.dev/
273
+ */
264
274
  vite?: UserConfig;
265
275
  /**
266
276
  * @vitejs/plugin-vue options
@@ -269,9 +279,21 @@ interface ValaxyExtendConfig {
269
279
  vue?: Parameters<typeof Vue>[0] & {
270
280
  isCustomElement?: ((tag: string) => boolean)[];
271
281
  };
282
+ /**
283
+ * @see https://github.com/unplugin/unplugin-vue-components
284
+ */
272
285
  components?: Parameters<typeof Components>[0];
286
+ /**
287
+ * @see https://github.com/JohnCampionJr/vite-plugin-vue-layouts
288
+ */
273
289
  layouts?: Parameters<typeof Layouts>[0];
290
+ /**
291
+ * @see https://github.com/posva/unplugin-vue-router
292
+ */
274
293
  router?: Parameters<typeof Router>[0];
294
+ /**
295
+ * @see https://unocss.dev/config/
296
+ */
275
297
  unocss?: VitePluginConfig;
276
298
  /**
277
299
  * rollup-plugin-visualizer
@@ -280,6 +302,7 @@ interface ValaxyExtendConfig {
280
302
  visualizer?: PluginVisualizerOptions;
281
303
  /**
282
304
  * unocss presets
305
+ * @see https://unocss.dev/guide/presets
283
306
  */
284
307
  unocssPresets?: {
285
308
  uno?: Parameters<typeof presetUno>[0];
@@ -294,9 +317,15 @@ interface ValaxyExtendConfig {
294
317
  */
295
318
  devtools?: boolean;
296
319
  /**
297
- * for markdown
320
+ * @en config for markdown (include markdown-it plugins)
321
+ * @zh markdown 相关配置
322
+ * {@link MarkdownOptions}
298
323
  */
299
324
  markdown?: MarkdownOptions & Parameters<typeof Markdown>[0];
325
+ /**
326
+ * @en Extend markdown, you can modify the markdown content/excerpt
327
+ * @zh 扩展 markdown
328
+ */
300
329
  extendMd?: (ctx: {
301
330
  route: EditableTreeNode;
302
331
  data: Readonly<Record<string, any>>;
@@ -304,7 +333,30 @@ interface ValaxyExtendConfig {
304
333
  excerpt?: string;
305
334
  path: string;
306
335
  }) => void;
336
+ /**
337
+ * @en Addons system
338
+ * @zh 插件系统
339
+ * @see 为什么需要插件? [Why Addon? | Valaxy](https://valaxy.site/addons/why)
340
+ * @see 插件橱窗 [Addons Gallery | Valaxy](https://valaxy.site/addons/gallery)
341
+ * @example
342
+ * ```ts
343
+ * import { defineValaxyConfig } from 'valaxy'
344
+ * import { addonTest } from 'valaxy-addon-test'
345
+ *
346
+ * export default defineValaxyConfig({
347
+ * addons: [
348
+ * // we always recommend to use function, so that you can pass options
349
+ * addonTest(),
350
+ * ]
351
+ * })
352
+ * ```
353
+ */
307
354
  addons?: ValaxyAddons;
355
+ /**
356
+ * @en Hooks system, you can customize each stage of the lifecycle.
357
+ * @zh 钩子系统,你可以对生命周期的各个阶段进行定制。
358
+ * @see https://valaxy.site/guide/custom/hooks
359
+ */
308
360
  hooks?: Partial<ValaxyHooks>;
309
361
  }
310
362
  type ValaxyAddonLike = ValaxyAddon | false | null | undefined;
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-G54Q6VIZ.mjs";import"../chunk-FRSA4VPQ.mjs";export{e as ALL_ROUTE,b as EXCERPT_SEPARATOR,c as EXTERNAL_URL_RE,d as PATHNAME_PROTOCOL_RE,P as ViteValaxyPlugins,Q as build,V as cli,U as createServer,O as createValaxyLoader,f as customElements,r as defaultSiteConfig,v as defaultValaxyConfig,g as defaultViteConfig,C as defineAddon,x as defineConfig,s as defineSiteConfig,H as defineTheme,I as defineUnoSetup,B as defineValaxyAddon,w as defineValaxyConfig,G as defineValaxyTheme,l as ensurePrefix,T as generateClientRedirects,a as getGitTimestamp,N as getIndexHtml,j as isExternal,h as isInstalledGlobally,n as isPath,p as loadConfig,q as loadConfigFromFile,z as mergeValaxyConfig,M as mergeViteConfigs,S as postProcessForSSG,J as processValaxyOptions,D as resolveAddonsConfig,i as resolveImportPath,K as resolveOptions,u as resolveSiteConfig,t as resolveSiteConfigFromRoot,E as resolveThemeConfigFromRoot,L as resolveThemeValaxyConfig,F as resolveUserThemeConfig,A as resolveValaxyConfig,y as resolveValaxyConfigFromRoot,W as run,k as slash,R as ssgBuild,m as toAtFS,o as transformObject};
2
+ import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-N5526RM3.mjs";import"../chunk-AUDFAOQV.mjs";export{e as ALL_ROUTE,b as EXCERPT_SEPARATOR,c as EXTERNAL_URL_RE,d as PATHNAME_PROTOCOL_RE,P as ViteValaxyPlugins,Q as build,V as cli,U as createServer,O as createValaxyLoader,f as customElements,r as defaultSiteConfig,v as defaultValaxyConfig,g as defaultViteConfig,C as defineAddon,x as defineConfig,s as defineSiteConfig,H as defineTheme,I as defineUnoSetup,B as defineValaxyAddon,w as defineValaxyConfig,G as defineValaxyTheme,l as ensurePrefix,T as generateClientRedirects,a as getGitTimestamp,N as getIndexHtml,j as isExternal,h as isInstalledGlobally,n as isPath,p as loadConfig,q as loadConfigFromFile,z as mergeValaxyConfig,M as mergeViteConfigs,S as postProcessForSSG,J as processValaxyOptions,D as resolveAddonsConfig,i as resolveImportPath,K as resolveOptions,u as resolveSiteConfig,t as resolveSiteConfigFromRoot,E as resolveThemeConfigFromRoot,L as resolveThemeValaxyConfig,F as resolveUserThemeConfig,A as resolveValaxyConfig,y as resolveValaxyConfigFromRoot,W as run,k as slash,R as ssgBuild,m as toAtFS,o as transformObject};
@@ -1 +1 @@
1
- "use strict";var _chunkSWO32WYTcjs = require('../chunk-SWO32WYT.cjs');_chunkSWO32WYTcjs.e.call(void 0, );_chunkSWO32WYTcjs.e.call(void 0, );_chunkSWO32WYTcjs.e.call(void 0, );_chunkSWO32WYTcjs.e.call(void 0, );_chunkSWO32WYTcjs.e.call(void 0, );_chunkSWO32WYTcjs.e.call(void 0, );_chunkSWO32WYTcjs.e.call(void 0, );_chunkSWO32WYTcjs.e.call(void 0, );_chunkSWO32WYTcjs.e.call(void 0, );_chunkSWO32WYTcjs.e.call(void 0, );
1
+ "use strict";var _chunk7EKNBB3Ecjs = require('../chunk-7EKNBB3E.cjs');_chunk7EKNBB3Ecjs.e.call(void 0, );_chunk7EKNBB3Ecjs.e.call(void 0, );_chunk7EKNBB3Ecjs.e.call(void 0, );_chunk7EKNBB3Ecjs.e.call(void 0, );_chunk7EKNBB3Ecjs.e.call(void 0, );_chunk7EKNBB3Ecjs.e.call(void 0, );_chunk7EKNBB3Ecjs.e.call(void 0, );_chunk7EKNBB3Ecjs.e.call(void 0, );_chunk7EKNBB3Ecjs.e.call(void 0, );_chunk7EKNBB3Ecjs.e.call(void 0, );
@@ -1,5 +1,5 @@
1
- import { a as PageFrontMatter, b as PostFrontMatter } from '../config-DRImYfNf.cjs';
2
- export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, P as PartialDeep, i as Photo, f as Pkg, c as RedirectItem, R as RedirectRule, e as RuntimeConfig, d as SiteConfig, S as SocialLink, U as UserSiteConfig, h as UserValaxyConfig, V as ValaxyAddon, g as ValaxyConfig } from '../config-DRImYfNf.cjs';
1
+ import { a as PageFrontMatter, b as PostFrontMatter } from '../config-BXn7sQx8.cjs';
2
+ export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, P as PartialDeep, i as Photo, f as Pkg, c as RedirectItem, R as RedirectRule, e as RuntimeConfig, d as SiteConfig, S as SocialLink, U as UserSiteConfig, h as UserValaxyConfig, V as ValaxyAddon, g as ValaxyConfig } from '../config-BXn7sQx8.cjs';
3
3
  import { Header } from '@valaxyjs/utils';
4
4
  import 'medium-zoom';
5
5
  import '@vueuse/integrations/useFuse';
@@ -1,5 +1,5 @@
1
- import { a as PageFrontMatter, b as PostFrontMatter } from '../config-DRImYfNf.js';
2
- export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, P as PartialDeep, i as Photo, f as Pkg, c as RedirectItem, R as RedirectRule, e as RuntimeConfig, d as SiteConfig, S as SocialLink, U as UserSiteConfig, h as UserValaxyConfig, V as ValaxyAddon, g as ValaxyConfig } from '../config-DRImYfNf.js';
1
+ import { a as PageFrontMatter, b as PostFrontMatter } from '../config-BXn7sQx8.js';
2
+ export { A as Album, D as DefaultTheme, E as ExcerptType, F as FuseListItem, P as PartialDeep, i as Photo, f as Pkg, c as RedirectItem, R as RedirectRule, e as RuntimeConfig, d as SiteConfig, S as SocialLink, U as UserSiteConfig, h as UserValaxyConfig, V as ValaxyAddon, g as ValaxyConfig } from '../config-BXn7sQx8.js';
3
3
  import { Header } from '@valaxyjs/utils';
4
4
  import 'medium-zoom';
5
5
  import '@vueuse/integrations/useFuse';
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{d as e}from"../chunk-FRSA4VPQ.mjs";e();e();e();e();e();e();e();e();e();e();
2
+ import{d as e}from"../chunk-AUDFAOQV.mjs";e();e();e();e();e();e();e();e();e();e();
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.2",
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.2",
134
+ "@valaxyjs/utils": "0.20.2"
135
135
  },
136
136
  "devDependencies": {
137
137
  "@mdit-vue/plugin-component": "^2.1.3",
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
  */
@@ -391,6 +393,8 @@ export interface ValaxyConfig<ThemeConfig = DefaultTheme.Config> {
391
393
  /**
392
394
  * The name of theme
393
395
  * @description 主题名称
396
+ * @see 主题橱窗 [Valaxy Themes Gallery](https://valaxy.site/themes/gallery)
397
+ * @see 如何编写主题? [How to write a theme? | Valaxy](https://valaxy.site/themes/write)
394
398
  */
395
399
  theme: string
396
400
  /**
@@ -401,7 +405,8 @@ export interface ValaxyConfig<ThemeConfig = DefaultTheme.Config> {
401
405
  pkg: Pkg
402
406
  }
403
407
  /**
404
- * generated by runtime
408
+ * @en Generated in runtime, do not modify manually
409
+ * @zh 在运行时生成,请勿手动修改
405
410
  */
406
411
  runtimeConfig: RuntimeConfig
407
412
  }