valaxy 0.16.1 → 0.16.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 _chunkVAGXCK43cjs = require('../../chunk-VAGXCK43.cjs');require('../../chunk-R6EC3UMQ.cjs');exports.cli = _chunkVAGXCK43cjs.F; exports.run = _chunkVAGXCK43cjs.G;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSB3V2W4Qcjs = require('../../chunk-SB3V2W4Q.cjs');require('../../chunk-R6EC3UMQ.cjs');exports.cli = _chunkSB3V2W4Qcjs.F; exports.run = _chunkSB3V2W4Qcjs.G;
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{F as a,G as b}from"../../chunk-W4ERA5UC.mjs";import"../../chunk-YTQABADX.mjs";export{a as cli,b as run};
2
+ import{F as a,G as b}from"../../chunk-2NB5YEWA.mjs";import"../../chunk-YTQABADX.mjs";export{a as cli,b as run};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVAGXCK43cjs = require('../chunk-VAGXCK43.cjs');require('../chunk-R6EC3UMQ.cjs');exports.build = _chunkVAGXCK43cjs.B; exports.cli = _chunkVAGXCK43cjs.F; exports.createServer = _chunkVAGXCK43cjs.E; exports.defaultSiteConfig = _chunkVAGXCK43cjs.t; exports.defaultValaxyConfig = _chunkVAGXCK43cjs.u; exports.defineAddon = _chunkVAGXCK43cjs.n; exports.defineConfig = _chunkVAGXCK43cjs.s; exports.defineSiteConfig = _chunkVAGXCK43cjs.q; exports.defineTheme = _chunkVAGXCK43cjs.p; exports.defineUnoSetup = _chunkVAGXCK43cjs.v; exports.defineValaxyAddon = _chunkVAGXCK43cjs.m; exports.defineValaxyConfig = _chunkVAGXCK43cjs.r; exports.defineValaxyTheme = _chunkVAGXCK43cjs.o; exports.ensurePrefix = _chunkVAGXCK43cjs.d; exports.getGitTimestamp = _chunkVAGXCK43cjs.a; exports.getIndexHtml = _chunkVAGXCK43cjs.A; exports.isExternal = _chunkVAGXCK43cjs.b; exports.isPath = _chunkVAGXCK43cjs.f; exports.mergeValaxyConfig = _chunkVAGXCK43cjs.g; exports.mergeViteConfigs = _chunkVAGXCK43cjs.z; exports.postProcessForSSG = _chunkVAGXCK43cjs.D; exports.processValaxyOptions = _chunkVAGXCK43cjs.w; exports.resolveAddonConfig = _chunkVAGXCK43cjs.j; exports.resolveImportPath = _chunkVAGXCK43cjs.l; exports.resolveOptions = _chunkVAGXCK43cjs.x; exports.resolveThemeValaxyConfig = _chunkVAGXCK43cjs.y; exports.resolveValaxyConfig = _chunkVAGXCK43cjs.i; exports.resolveValaxyConfigFromRoot = _chunkVAGXCK43cjs.h; exports.run = _chunkVAGXCK43cjs.G; exports.slash = _chunkVAGXCK43cjs.c; exports.ssgBuild = _chunkVAGXCK43cjs.C; exports.toAtFS = _chunkVAGXCK43cjs.e; exports.transformObject = _chunkVAGXCK43cjs.k;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSB3V2W4Qcjs = require('../chunk-SB3V2W4Q.cjs');require('../chunk-R6EC3UMQ.cjs');exports.build = _chunkSB3V2W4Qcjs.B; exports.cli = _chunkSB3V2W4Qcjs.F; exports.createServer = _chunkSB3V2W4Qcjs.E; exports.defaultSiteConfig = _chunkSB3V2W4Qcjs.t; exports.defaultValaxyConfig = _chunkSB3V2W4Qcjs.u; exports.defineAddon = _chunkSB3V2W4Qcjs.n; exports.defineConfig = _chunkSB3V2W4Qcjs.s; exports.defineSiteConfig = _chunkSB3V2W4Qcjs.q; exports.defineTheme = _chunkSB3V2W4Qcjs.p; exports.defineUnoSetup = _chunkSB3V2W4Qcjs.v; exports.defineValaxyAddon = _chunkSB3V2W4Qcjs.m; exports.defineValaxyConfig = _chunkSB3V2W4Qcjs.r; exports.defineValaxyTheme = _chunkSB3V2W4Qcjs.o; exports.ensurePrefix = _chunkSB3V2W4Qcjs.d; exports.getGitTimestamp = _chunkSB3V2W4Qcjs.a; exports.getIndexHtml = _chunkSB3V2W4Qcjs.A; exports.isExternal = _chunkSB3V2W4Qcjs.b; exports.isPath = _chunkSB3V2W4Qcjs.f; exports.mergeValaxyConfig = _chunkSB3V2W4Qcjs.g; exports.mergeViteConfigs = _chunkSB3V2W4Qcjs.z; exports.postProcessForSSG = _chunkSB3V2W4Qcjs.D; exports.processValaxyOptions = _chunkSB3V2W4Qcjs.w; exports.resolveAddonConfig = _chunkSB3V2W4Qcjs.j; exports.resolveImportPath = _chunkSB3V2W4Qcjs.l; exports.resolveOptions = _chunkSB3V2W4Qcjs.x; exports.resolveThemeValaxyConfig = _chunkSB3V2W4Qcjs.y; exports.resolveValaxyConfig = _chunkSB3V2W4Qcjs.i; exports.resolveValaxyConfigFromRoot = _chunkSB3V2W4Qcjs.h; exports.run = _chunkSB3V2W4Qcjs.G; exports.slash = _chunkSB3V2W4Qcjs.c; exports.ssgBuild = _chunkSB3V2W4Qcjs.C; exports.toAtFS = _chunkSB3V2W4Qcjs.e; exports.transformObject = _chunkSB3V2W4Qcjs.k;
@@ -17,6 +17,7 @@ import { FrontmatterPluginOptions } from '@mdit-vue/plugin-frontmatter';
17
17
  import { HeadersPluginOptions } from '@mdit-vue/plugin-headers';
18
18
  import { SfcPluginOptions } from '@mdit-vue/plugin-sfc';
19
19
  import { TocPluginOptions } from '@mdit-vue/plugin-toc';
20
+ import { ComponentPluginOptions } from '@mdit-vue/plugin-component';
20
21
  import { Awaitable } from '@antfu/utils';
21
22
  import * as defu from 'defu';
22
23
  import 'yargs';
@@ -55,6 +56,10 @@ type ThemeOptions = IThemeRegistration | {
55
56
  dark: IThemeRegistration;
56
57
  };
57
58
  interface MarkdownOptions {
59
+ /**
60
+ * Setup markdown-it instance before applying plugins
61
+ */
62
+ preConfig?: (md: MarkdownIt) => void;
58
63
  /**
59
64
  * markdown-it options
60
65
  */
@@ -75,6 +80,11 @@ interface MarkdownOptions {
75
80
  headers?: HeadersPluginOptions;
76
81
  sfc?: SfcPluginOptions;
77
82
  toc?: TocPluginOptions;
83
+ /**
84
+ * Options for `@mdit-vue/plugin-component`
85
+ * @see https://github.com/mdit-vue/mdit-vue/tree/main/packages/plugin-component
86
+ */
87
+ component?: ComponentPluginOptions;
78
88
  /**
79
89
  * @see [markdown-it-image-figures](https://www.npmjs.com/package/markdown-it-image-figures)
80
90
  */
@@ -17,6 +17,7 @@ import { FrontmatterPluginOptions } from '@mdit-vue/plugin-frontmatter';
17
17
  import { HeadersPluginOptions } from '@mdit-vue/plugin-headers';
18
18
  import { SfcPluginOptions } from '@mdit-vue/plugin-sfc';
19
19
  import { TocPluginOptions } from '@mdit-vue/plugin-toc';
20
+ import { ComponentPluginOptions } from '@mdit-vue/plugin-component';
20
21
  import { Awaitable } from '@antfu/utils';
21
22
  import * as defu from 'defu';
22
23
  import 'yargs';
@@ -55,6 +56,10 @@ type ThemeOptions = IThemeRegistration | {
55
56
  dark: IThemeRegistration;
56
57
  };
57
58
  interface MarkdownOptions {
59
+ /**
60
+ * Setup markdown-it instance before applying plugins
61
+ */
62
+ preConfig?: (md: MarkdownIt) => void;
58
63
  /**
59
64
  * markdown-it options
60
65
  */
@@ -75,6 +80,11 @@ interface MarkdownOptions {
75
80
  headers?: HeadersPluginOptions;
76
81
  sfc?: SfcPluginOptions;
77
82
  toc?: TocPluginOptions;
83
+ /**
84
+ * Options for `@mdit-vue/plugin-component`
85
+ * @see https://github.com/mdit-vue/mdit-vue/tree/main/packages/plugin-component
86
+ */
87
+ component?: ComponentPluginOptions;
78
88
  /**
79
89
  * @see [markdown-it-image-figures](https://www.npmjs.com/package/markdown-it-image-figures)
80
90
  */
@@ -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,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-W4ERA5UC.mjs";import"../chunk-YTQABADX.mjs";export{B as build,F as cli,E as createServer,t as defaultSiteConfig,u as defaultValaxyConfig,n as defineAddon,s as defineConfig,q as defineSiteConfig,p as defineTheme,v as defineUnoSetup,m as defineValaxyAddon,r as defineValaxyConfig,o as defineValaxyTheme,d as ensurePrefix,a as getGitTimestamp,A as getIndexHtml,b as isExternal,f as isPath,g as mergeValaxyConfig,z as mergeViteConfigs,D as postProcessForSSG,w as processValaxyOptions,j as resolveAddonConfig,l as resolveImportPath,x as resolveOptions,y as resolveThemeValaxyConfig,i as resolveValaxyConfig,h as resolveValaxyConfigFromRoot,G as run,c as slash,C as ssgBuild,e as toAtFS,k as transformObject};
2
+ import{A,B,C,D,E,F,G,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-2NB5YEWA.mjs";import"../chunk-YTQABADX.mjs";export{B as build,F as cli,E as createServer,t as defaultSiteConfig,u as defaultValaxyConfig,n as defineAddon,s as defineConfig,q as defineSiteConfig,p as defineTheme,v as defineUnoSetup,m as defineValaxyAddon,r as defineValaxyConfig,o as defineValaxyTheme,d as ensurePrefix,a as getGitTimestamp,A as getIndexHtml,b as isExternal,f as isPath,g as mergeValaxyConfig,z as mergeViteConfigs,D as postProcessForSSG,w as processValaxyOptions,j as resolveAddonConfig,l as resolveImportPath,x as resolveOptions,y as resolveThemeValaxyConfig,i as resolveValaxyConfig,h as resolveValaxyConfigFromRoot,G as run,c as slash,C as ssgBuild,e as toAtFS,k as transformObject};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.16.1",
4
+ "version": "0.16.2",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -111,7 +111,7 @@
111
111
  "vanilla-lazyload": "^17.8.5",
112
112
  "vite": "^5.0.10",
113
113
  "vite-plugin-pages": "^0.32.0",
114
- "vite-plugin-vue-layouts": "^0.10.0",
114
+ "vite-plugin-vue-layouts": "0.9.1",
115
115
  "vite-ssg": "0.23.5",
116
116
  "vite-ssg-sitemap": "0.6.1",
117
117
  "vue": "^3.3.13",