valaxy 0.26.3 → 0.26.4

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,7 +1,7 @@
1
1
  import 'node:process';
2
2
  import 'yargs';
3
3
  import 'yargs/helpers';
4
- export { c as cli, d as registerDevCommand, r as run, a as startValaxyDev } from '../../shared/valaxy.D7OlaIFc.mjs';
4
+ export { c as cli, d as registerDevCommand, r as run, a as startValaxyDev } from '../../shared/valaxy.Dv1KXH06.mjs';
5
5
  import 'node:path';
6
6
  import 'consola';
7
7
  import 'consola/utils';
@@ -1,4 +1,4 @@
1
- export { C as ALL_ROUTE, E as EXCERPT_SEPARATOR, G as GLOBAL_STATE, P as PATHNAME_PROTOCOL_RE, V as ViteValaxyPlugins, b as build, c as cli, N as createServer, L as createValaxyPlugin, D as customElements, j as defaultSiteConfig, w as defaultValaxyConfig, F as defaultViteConfig, h as defineAddon, y as defineConfig, k as defineSiteConfig, u as defineTheme, f as defineValaxyAddon, x as defineValaxyConfig, t as defineValaxyTheme, O as encryptContent, g as generateClientRedirects, Q as getGitTimestamp, e as getIndexHtml, M as getServerInfoText, R as isExternal, U as isInstalledGlobally, S as isPath, v as loadConfigFromFile, A as mergeValaxyConfig, m as mergeViteConfigs, p as postProcessForSSG, I as processValaxyOptions, d as registerDevCommand, i as resolveAddonsConfig, Y as resolveImportPath, W as resolveImportUrl, J as resolveOptions, n as resolveSiteConfig, l as resolveSiteConfigFromRoot, o as resolveThemeConfigFromRoot, K as resolveThemeValaxyConfig, q as resolveUserThemeConfig, B as resolveValaxyConfig, z as resolveValaxyConfigFromRoot, r as run, s as ssgBuild, a as startValaxyDev, X as toAtFS, T as transformObject, H as version } from '../shared/valaxy.D7OlaIFc.mjs';
1
+ export { C as ALL_ROUTE, E as EXCERPT_SEPARATOR, G as GLOBAL_STATE, P as PATHNAME_PROTOCOL_RE, V as ViteValaxyPlugins, b as build, c as cli, N as createServer, L as createValaxyPlugin, D as customElements, j as defaultSiteConfig, w as defaultValaxyConfig, F as defaultViteConfig, h as defineAddon, y as defineConfig, k as defineSiteConfig, u as defineTheme, f as defineValaxyAddon, x as defineValaxyConfig, t as defineValaxyTheme, O as encryptContent, g as generateClientRedirects, Q as getGitTimestamp, e as getIndexHtml, M as getServerInfoText, R as isExternal, U as isInstalledGlobally, S as isPath, v as loadConfigFromFile, A as mergeValaxyConfig, m as mergeViteConfigs, p as postProcessForSSG, I as processValaxyOptions, d as registerDevCommand, i as resolveAddonsConfig, Y as resolveImportPath, W as resolveImportUrl, J as resolveOptions, n as resolveSiteConfig, l as resolveSiteConfigFromRoot, o as resolveThemeConfigFromRoot, K as resolveThemeValaxyConfig, q as resolveUserThemeConfig, B as resolveValaxyConfig, z as resolveValaxyConfigFromRoot, r as run, s as ssgBuild, a as startValaxyDev, X as toAtFS, T as transformObject, H as version } from '../shared/valaxy.Dv1KXH06.mjs';
2
2
  import 'node:path';
3
3
  import 'fs-extra';
4
4
  import 'consola/utils';
@@ -1567,7 +1567,7 @@ async function setupMarkdownPlugins(md, options, base = "/") {
1567
1567
  return md;
1568
1568
  }
1569
1569
 
1570
- const version = "0.26.3";
1570
+ const version = "0.26.4";
1571
1571
 
1572
1572
  const GLOBAL_STATE = {
1573
1573
  valaxyApp: void 0,
@@ -3675,7 +3675,7 @@ function commonOptions(args) {
3675
3675
 
3676
3676
  async function generateFuseList(options) {
3677
3677
  consola.start(`Generate List for Fuse Search by (${colors.cyan("fuse.js")}) ...`);
3678
- const pattern = options.config.siteConfig.fuse.pattern || path$1.join(options.userRoot, "pages/**/*.md");
3678
+ const pattern = path$1.resolve(options.userRoot, options.config.siteConfig.fuse.pattern || "pages/**/*.md");
3679
3679
  const files = await fg(pattern);
3680
3680
  const posts = [];
3681
3681
  for await (const i of files) {
@@ -3691,7 +3691,7 @@ async function generateFuseList(options) {
3691
3691
  if (fmData.password)
3692
3692
  continue;
3693
3693
  const extendKeys = options.config.fuse?.extendKeys || [];
3694
- const relativeLink = i.replace(`${options.userRoot}/pages`, "");
3694
+ const relativeLink = path$1.relative(path$1.resolve(options.userRoot, "pages"), i);
3695
3695
  const link = i.endsWith("index.md") ? relativeLink.replace(/\/index\.md$/, "") : relativeLink.replace(/\.md$/, "");
3696
3696
  const fuseListItem = {
3697
3697
  title: fmData.title || "",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.26.3",
4
+ "version": "0.26.4",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -65,22 +65,22 @@
65
65
  "@clack/prompts": "^0.11.0",
66
66
  "@iconify-json/ri": "^1.2.5",
67
67
  "@intlify/unplugin-vue-i18n": "^6.0.8",
68
- "@shikijs/transformers": "^3.9.2",
68
+ "@shikijs/transformers": "^3.12.0",
69
69
  "@types/katex": "^0.16.7",
70
70
  "@unhead/addons": "^2.0.14",
71
71
  "@unhead/schema-org": "^2.0.14",
72
72
  "@unhead/vue": "^2.0.14",
73
73
  "@vitejs/plugin-vue": "^6.0.1",
74
74
  "@vue/devtools-api": "7.7.2",
75
- "@vueuse/core": "^13.6.0",
76
- "@vueuse/integrations": "^13.6.0",
75
+ "@vueuse/core": "^13.8.0",
76
+ "@vueuse/integrations": "^13.8.0",
77
77
  "beasties": "^0.3.5",
78
78
  "consola": "^3.4.2",
79
79
  "cross-spawn": "^7.0.6",
80
80
  "css-i18n": "^0.0.5",
81
- "dayjs": "^1.11.13",
81
+ "dayjs": "^1.11.14",
82
82
  "debug": "^4.4.1",
83
- "define-config-ts": "^0.1.2",
83
+ "define-config-ts": "^0.1.3",
84
84
  "defu": "^6.1.4",
85
85
  "ejs": "^3.1.10",
86
86
  "escape-html": "^1.0.3",
@@ -108,8 +108,8 @@
108
108
  "markdown-it-table-of-contents": "^0.9.0",
109
109
  "markdown-it-task-lists": "^2.1.1",
110
110
  "medium-zoom": "^1.1.0",
111
- "mermaid": "^11.9.0",
112
- "mlly": "^1.7.4",
111
+ "mermaid": "^11.10.1",
112
+ "mlly": "^1.8.0",
113
113
  "nprogress": "^0.2.0",
114
114
  "open": "10.1.0",
115
115
  "ora": "^8.2.0",
@@ -118,8 +118,8 @@
118
118
  "pinia": "^3.0.3",
119
119
  "qrcode": "^1.5.4",
120
120
  "resolve-global": "^2.0.0",
121
- "sass": "^1.90.0",
122
- "shiki": "^3.9.2",
121
+ "sass": "^1.91.0",
122
+ "shiki": "^3.12.0",
123
123
  "star-markdown-css": "^0.5.3",
124
124
  "table": "^6.9.0",
125
125
  "unhead": "^2.0.14",
@@ -128,19 +128,19 @@
128
128
  "unplugin-vue-markdown": "^29.1.0",
129
129
  "unplugin-vue-router": "^0.15.0",
130
130
  "vanilla-lazyload": "^19.1.3",
131
- "vite": "^7.1.2",
131
+ "vite": "^7.1.3",
132
132
  "vite-dev-rpc": "^1.1.0",
133
- "vite-plugin-vue-devtools": "^8.0.0",
133
+ "vite-plugin-vue-devtools": "^8.0.1",
134
134
  "vite-plugin-vue-layouts": "^0.11.0",
135
135
  "vite-ssg": "^28.1.0",
136
136
  "vite-ssg-sitemap": "^0.10.0",
137
137
  "vitepress-plugin-group-icons": "^1.6.3",
138
- "vue": "^3.5.18",
138
+ "vue": "^3.5.20",
139
139
  "vue-i18n": "^11.1.11",
140
140
  "vue-router": "^4.5.1",
141
141
  "yargs": "^18.0.0",
142
- "@valaxyjs/utils": "0.26.3",
143
- "@valaxyjs/devtools": "0.26.3"
142
+ "@valaxyjs/utils": "0.26.4",
143
+ "@valaxyjs/devtools": "0.26.4"
144
144
  },
145
145
  "devDependencies": {
146
146
  "@mdit-vue/plugin-component": "^3.0.2",