valaxy 1.3.3 → 1.4.0

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,4 +1,4 @@
1
- export { A as ALL_ROUTE, E as EXCERPT_SEPARATOR, G as GLOBAL_STATE, P as PATHNAME_PROTOCOL_RE, S as StateManager, V as ViteValaxyPlugins, b as build, c as createCli, a as createContentService, d as createMemoryReleasePlugin, e as createServer, f as createValaxyNode, g as createValaxyPlugin, h as customElements, i as defaultSiteConfig, j as defaultValaxyConfig, k as defaultViteConfig, l as defineAddon, m as defineConfig, n as defineSiteConfig, o as defineTheme, p as defineValaxyAddon, q as defineValaxyConfig, r as defineValaxyTheme, s as desktopRuntimeVersion, t as encryptContent, u as execBuild, v as generateClientRedirects, w as getGitTimestamp, x as getIndexHtml, y as getServerInfoText, z as isExternal, B as isInstalledGlobally, C as isKatexEnabled, D as isKatexPluginNeeded, F as isMathJaxEnabled, H as isPath, I as loadAllContent, J as loadConfigFromFile, K as mergeValaxyConfig, L as mergeViteConfigs, M as postProcessForSSG, N as processValaxyOptions, O as registerDevCommand, Q as resolveAddonsConfig, R as resolveImportPath, T as resolveImportUrl, U as resolveOptions, W as resolveSiteConfig, X as resolveSiteConfigFromRoot, Y as resolveThemeConfigFromRoot, Z as resolveThemeValaxyConfig, _ as resolveUserThemeConfig, $ as resolveValaxyConfig, a0 as resolveValaxyConfigFromRoot, a1 as run, a2 as ssgBuild, a3 as startValaxyDev, a4 as toAtFS, a5 as transformObject, a6 as version } from '../shared/valaxy.aOnvqwjo.mjs';
1
+ export { A as ALL_ROUTE, E as EXCERPT_SEPARATOR, G as GLOBAL_STATE, P as PATHNAME_PROTOCOL_RE, S as StateManager, V as ViteValaxyPlugins, b as build, c as clearGitTimestampCache, a as createCli, d as createContentService, e as createMemoryReleasePlugin, f as createServer, g as createValaxyNode, h as createValaxyPlugin, i as customElements, j as defaultSiteConfig, k as defaultValaxyConfig, l as defaultViteConfig, m as defineAddon, n as defineConfig, o as defineSiteConfig, p as defineTheme, q as defineValaxyAddon, r as defineValaxyConfig, s as defineValaxyTheme, t as desktopRuntimeVersion, u as encryptContent, v as execBuild, w as generateClientRedirects, x as getGitTimestamp, y as getGitTimestampCache, z as getIndexHtml, B as getServerInfoText, C as isExternal, D as isInstalledGlobally, F as isKatexEnabled, H as isKatexPluginNeeded, I as isMathJaxEnabled, J as isPath, K as loadAllContent, L as loadConfigFromFile, M as mergeValaxyConfig, N as mergeViteConfigs, O as postProcessForSSG, Q as processValaxyOptions, R as registerDevCommand, T as resolveAddonsConfig, U as resolveImportPath, W as resolveImportUrl, X as resolveOptions, Y as resolveSiteConfig, Z as resolveSiteConfigFromRoot, _ as resolveThemeConfigFromRoot, $ as resolveThemeValaxyConfig, a0 as resolveUserThemeConfig, a1 as resolveValaxyConfig, a2 as resolveValaxyConfigFromRoot, a3 as run, a4 as ssgBuild, a5 as startValaxyDev, a6 as toAtFS, a7 as transformObject, a8 as version } from '../shared/valaxy.i_3nqqSt.mjs';
2
2
  import 'node:path';
3
3
  import 'consola';
4
4
  import 'fs-extra';
@@ -24,12 +24,15 @@ import 'mlly';
24
24
  import 'resolve-global';
25
25
  import '@valaxyjs/utils';
26
26
  import 'node:fs';
27
+ import 'p-map';
27
28
  import 'picomatch';
28
29
  import 'node:fs/promises';
29
30
  import 'dayjs';
30
31
  import 'feed';
31
32
  import 'markdown-exit';
32
33
  import 'table';
34
+ import 'htmlparser2';
35
+ import 'magic-string';
33
36
  import 'hookable';
34
37
  import '@unhead/bundler/vite';
35
38
  import 'vitepress-plugin-group-icons';
@@ -38,8 +41,6 @@ import 'chokidar';
38
41
  import 'unplugin';
39
42
  import 'unplugin-utils';
40
43
  import 'obug';
41
- import 'magic-string';
42
- import 'p-map';
43
44
  import 'pascalcase';
44
45
  import '@intlify/unplugin-vue-i18n/vite';
45
46
  import 'minisearch';
@@ -53,7 +54,6 @@ import 'markdown-it-emoji';
53
54
  import 'markdown-it-footnote';
54
55
  import 'markdown-it-image-figures';
55
56
  import 'markdown-it-task-lists';
56
- import 'node:url';
57
57
  import 'markdown-it-container';
58
58
  import 'katex';
59
59
  import 'katex/contrib/mhchem';
@@ -62,8 +62,8 @@ import 'jiti';
62
62
  import 'unocss';
63
63
  import 'html-to-text';
64
64
  import 'vue-router/vite';
65
+ import 'node:url';
65
66
  import '@unhead/vue/server';
66
- import 'htmlparser2';
67
67
  import 'escape-html';
68
68
  import 'vue-router/unplugin';
69
69
  import 'node:child_process';
@@ -0,0 +1,62 @@
1
+ interface CollectionConfig {
2
+ title?: string;
3
+ key?: string;
4
+ /**
5
+ * if key is not provided, path is required
6
+ *
7
+ * if key is provided, path = `/collections/${key}`
8
+ */
9
+ path?: string;
10
+ /**
11
+ * @en
12
+ * The name of the collection.
13
+ *
14
+ * @zh
15
+ * 合集名称
16
+ */
17
+ name?: string;
18
+ cover?: string;
19
+ description?: string;
20
+ categories?: string[];
21
+ tags?: string[];
22
+ /**
23
+ * @en Whether to show collection as a single collapsed entry in homepage/archive lists.
24
+ * When true (default), a synthetic collection card is added to the post list,
25
+ * representing all articles in the collection as one entry.
26
+ * When false, no synthetic entry is added.
27
+ * @zh 是否在首页/归档列表中以单个条目展示合集。
28
+ * 为 true(默认)时,合集以一张卡片出现在文章列表中,
29
+ * 代表合集内的所有文章。
30
+ * 为 false 时,不添加合集条目。
31
+ * @default true
32
+ */
33
+ collapse?: boolean;
34
+ /**
35
+ * items
36
+ */
37
+ items?: {
38
+ title?: string;
39
+ /**
40
+ * 合集文章的唯一索引
41
+ *
42
+ * 对应路径为 `/collections/${key}/${item.key}`
43
+ */
44
+ key?: string;
45
+ /**
46
+ * @en
47
+ * Link to an existing page or external URL.
48
+ * Internal links (starting with `/`) use `<RouterLink>`.
49
+ * External links (e.g. `https://...`) open in a new tab.
50
+ * Mutually exclusive with `key` — if both are set, `link` takes precedence.
51
+ *
52
+ * @zh
53
+ * 链接到已有页面或外部 URL。
54
+ * 内部链接(以 `/` 开头)使用 `<RouterLink>`。
55
+ * 外部链接(如 `https://...`)在新标签页中打开。
56
+ * 与 `key` 互斥——若同时设置,`link` 优先。
57
+ */
58
+ link?: string;
59
+ }[];
60
+ }
61
+
62
+ export type { CollectionConfig as C };