valaxy 0.19.2 → 0.19.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.
- package/client/App.vue +1 -99
- package/client/components/ValaxyApp.vue +106 -0
- package/client/components/ValaxyDecrypt.vue +2 -1
- package/client/composables/outline/headers.ts +8 -111
- package/client/index.ts +3 -0
- package/client/main.ts +1 -0
- package/client/styles/mixins/variable.scss +0 -4
- package/client/styles/palette.scss +6 -3
- package/dist/{chunk-I6UPHJXQ.cjs → chunk-AFNVTV2C.cjs} +1 -1
- package/dist/chunk-K5UQMKIT.mjs +157 -0
- package/dist/chunk-VJHFBXMR.cjs +156 -0
- package/dist/node/cli/index.cjs +1 -1
- package/dist/node/cli/index.mjs +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +17 -1
- package/dist/node/index.d.ts +17 -1
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +2 -29
- package/dist/types/index.d.ts +2 -29
- package/dist/types/index.mjs +1 -1
- package/package.json +13 -13
- package/shims.d.ts +1 -1
- package/types/data.ts +1 -28
- package/dist/chunk-PTYUKZAG.mjs +0 -157
- package/dist/chunk-RVKKZQ6C.cjs +0 -156
- /package/dist/{chunk-7VTZAWDO.mjs → chunk-GYSOLAXM.mjs} +0 -0
package/dist/node/cli/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVJHFBXMRcjs = require('../../chunk-VJHFBXMR.cjs');require('../../chunk-AFNVTV2C.cjs');exports.cli = _chunkVJHFBXMRcjs.T; exports.run = _chunkVJHFBXMRcjs.U;
|
package/dist/node/cli/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
|
-
import{T as a,U as b}from"../../chunk-
|
|
2
|
+
import{T as a,U as b}from"../../chunk-K5UQMKIT.mjs";import"../../chunk-GYSOLAXM.mjs";export{a as cli,b as run};
|
package/dist/node/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVJHFBXMRcjs = require('../chunk-VJHFBXMR.cjs');require('../chunk-AFNVTV2C.cjs');exports.ALL_ROUTE = _chunkVJHFBXMRcjs.e; exports.EXCERPT_SEPARATOR = _chunkVJHFBXMRcjs.b; exports.EXTERNAL_URL_RE = _chunkVJHFBXMRcjs.c; exports.PATHNAME_PROTOCOL_RE = _chunkVJHFBXMRcjs.d; exports.ViteValaxyPlugins = _chunkVJHFBXMRcjs.N; exports.build = _chunkVJHFBXMRcjs.O; exports.cli = _chunkVJHFBXMRcjs.T; exports.createServer = _chunkVJHFBXMRcjs.S; exports.createValaxyLoader = _chunkVJHFBXMRcjs.M; exports.customElements = _chunkVJHFBXMRcjs.f; exports.defaultSiteConfig = _chunkVJHFBXMRcjs.p; exports.defaultValaxyConfig = _chunkVJHFBXMRcjs.t; exports.defineAddon = _chunkVJHFBXMRcjs.A; exports.defineConfig = _chunkVJHFBXMRcjs.v; exports.defineSiteConfig = _chunkVJHFBXMRcjs.q; exports.defineTheme = _chunkVJHFBXMRcjs.F; exports.defineUnoSetup = _chunkVJHFBXMRcjs.G; exports.defineValaxyAddon = _chunkVJHFBXMRcjs.z; exports.defineValaxyConfig = _chunkVJHFBXMRcjs.u; exports.defineValaxyTheme = _chunkVJHFBXMRcjs.E; exports.ensurePrefix = _chunkVJHFBXMRcjs.j; exports.generateClientRedirects = _chunkVJHFBXMRcjs.R; exports.getGitTimestamp = _chunkVJHFBXMRcjs.a; exports.getIndexHtml = _chunkVJHFBXMRcjs.L; exports.isExternal = _chunkVJHFBXMRcjs.h; exports.isPath = _chunkVJHFBXMRcjs.l; exports.loadConfig = _chunkVJHFBXMRcjs.n; exports.loadConfigFromFile = _chunkVJHFBXMRcjs.o; exports.mergeValaxyConfig = _chunkVJHFBXMRcjs.x; exports.mergeViteConfigs = _chunkVJHFBXMRcjs.K; exports.postProcessForSSG = _chunkVJHFBXMRcjs.Q; exports.processValaxyOptions = _chunkVJHFBXMRcjs.H; exports.resolveAddonsConfig = _chunkVJHFBXMRcjs.B; exports.resolveImportPath = _chunkVJHFBXMRcjs.g; exports.resolveOptions = _chunkVJHFBXMRcjs.I; exports.resolveSiteConfig = _chunkVJHFBXMRcjs.s; exports.resolveSiteConfigFromRoot = _chunkVJHFBXMRcjs.r; exports.resolveThemeConfigFromRoot = _chunkVJHFBXMRcjs.C; exports.resolveThemeValaxyConfig = _chunkVJHFBXMRcjs.J; exports.resolveUserThemeConfig = _chunkVJHFBXMRcjs.D; exports.resolveValaxyConfig = _chunkVJHFBXMRcjs.y; exports.resolveValaxyConfigFromRoot = _chunkVJHFBXMRcjs.w; exports.run = _chunkVJHFBXMRcjs.U; exports.slash = _chunkVJHFBXMRcjs.i; exports.ssgBuild = _chunkVJHFBXMRcjs.P; exports.toAtFS = _chunkVJHFBXMRcjs.k; exports.transformObject = _chunkVJHFBXMRcjs.m;
|
package/dist/node/index.d.cts
CHANGED
|
@@ -205,8 +205,24 @@ interface ValaxyExtendConfig {
|
|
|
205
205
|
* Don't fail builds due to dead links.
|
|
206
206
|
*
|
|
207
207
|
* @default false
|
|
208
|
+
* @deprecated use `build.ignoreDeadLinks` instead
|
|
208
209
|
*/
|
|
209
210
|
ignoreDeadLinks?: boolean | 'localhostLinks' | (string | RegExp | ((link: string) => boolean))[];
|
|
211
|
+
build: {
|
|
212
|
+
/**
|
|
213
|
+
* Don't fail builds due to dead links.
|
|
214
|
+
*
|
|
215
|
+
* @default false
|
|
216
|
+
*/
|
|
217
|
+
ignoreDeadLinks?: boolean | 'localhostLinks' | (string | RegExp | ((link: string) => boolean))[];
|
|
218
|
+
/**
|
|
219
|
+
* Enable SSG for pagination
|
|
220
|
+
* @default false
|
|
221
|
+
* When enabled, it will generate pagination pages for you.
|
|
222
|
+
* `/page/1`, `/page/2`, ...
|
|
223
|
+
*/
|
|
224
|
+
ssgForPagination: boolean;
|
|
225
|
+
};
|
|
210
226
|
/**
|
|
211
227
|
* internal modules
|
|
212
228
|
*/
|
|
@@ -410,7 +426,7 @@ interface ResolvedConfig<T extends UserInputConfig = UserInputConfig> {
|
|
|
410
426
|
declare function loadConfig<T extends UserInputConfig = UserInputConfig>(options: {
|
|
411
427
|
name: string;
|
|
412
428
|
cwd: string;
|
|
413
|
-
}): ResolvedConfig<T
|
|
429
|
+
}): Promise<ResolvedConfig<T>>;
|
|
414
430
|
declare function loadConfigFromFile<T extends UserInputConfig>(file: string, options?: LoadConfigFromFileOptions): Promise<ResolvedConfig<T>>;
|
|
415
431
|
|
|
416
432
|
declare const defaultValaxyConfig: ValaxyNodeConfig;
|
package/dist/node/index.d.ts
CHANGED
|
@@ -205,8 +205,24 @@ interface ValaxyExtendConfig {
|
|
|
205
205
|
* Don't fail builds due to dead links.
|
|
206
206
|
*
|
|
207
207
|
* @default false
|
|
208
|
+
* @deprecated use `build.ignoreDeadLinks` instead
|
|
208
209
|
*/
|
|
209
210
|
ignoreDeadLinks?: boolean | 'localhostLinks' | (string | RegExp | ((link: string) => boolean))[];
|
|
211
|
+
build: {
|
|
212
|
+
/**
|
|
213
|
+
* Don't fail builds due to dead links.
|
|
214
|
+
*
|
|
215
|
+
* @default false
|
|
216
|
+
*/
|
|
217
|
+
ignoreDeadLinks?: boolean | 'localhostLinks' | (string | RegExp | ((link: string) => boolean))[];
|
|
218
|
+
/**
|
|
219
|
+
* Enable SSG for pagination
|
|
220
|
+
* @default false
|
|
221
|
+
* When enabled, it will generate pagination pages for you.
|
|
222
|
+
* `/page/1`, `/page/2`, ...
|
|
223
|
+
*/
|
|
224
|
+
ssgForPagination: boolean;
|
|
225
|
+
};
|
|
210
226
|
/**
|
|
211
227
|
* internal modules
|
|
212
228
|
*/
|
|
@@ -410,7 +426,7 @@ interface ResolvedConfig<T extends UserInputConfig = UserInputConfig> {
|
|
|
410
426
|
declare function loadConfig<T extends UserInputConfig = UserInputConfig>(options: {
|
|
411
427
|
name: string;
|
|
412
428
|
cwd: string;
|
|
413
|
-
}): ResolvedConfig<T
|
|
429
|
+
}): Promise<ResolvedConfig<T>>;
|
|
414
430
|
declare function loadConfigFromFile<T extends UserInputConfig>(file: string, options?: LoadConfigFromFileOptions): Promise<ResolvedConfig<T>>;
|
|
415
431
|
|
|
416
432
|
declare const defaultValaxyConfig: ValaxyNodeConfig;
|
package/dist/node/index.mjs
CHANGED
|
@@ -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,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-
|
|
2
|
+
import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,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-K5UQMKIT.mjs";import"../chunk-GYSOLAXM.mjs";export{e as ALL_ROUTE,b as EXCERPT_SEPARATOR,c as EXTERNAL_URL_RE,d as PATHNAME_PROTOCOL_RE,N as ViteValaxyPlugins,O as build,T as cli,S as createServer,M as createValaxyLoader,f as customElements,p as defaultSiteConfig,t as defaultValaxyConfig,A as defineAddon,v as defineConfig,q as defineSiteConfig,F as defineTheme,G as defineUnoSetup,z as defineValaxyAddon,u as defineValaxyConfig,E as defineValaxyTheme,j as ensurePrefix,R as generateClientRedirects,a as getGitTimestamp,L as getIndexHtml,h as isExternal,l as isPath,n as loadConfig,o as loadConfigFromFile,x as mergeValaxyConfig,K as mergeViteConfigs,Q as postProcessForSSG,H as processValaxyOptions,B as resolveAddonsConfig,g as resolveImportPath,I as resolveOptions,s as resolveSiteConfig,r as resolveSiteConfigFromRoot,C as resolveThemeConfigFromRoot,J as resolveThemeValaxyConfig,D as resolveUserThemeConfig,y as resolveValaxyConfig,w as resolveValaxyConfigFromRoot,U as run,i as slash,P as ssgBuild,k as toAtFS,m as transformObject};
|
package/dist/types/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var _chunkAFNVTV2Ccjs = require('../chunk-AFNVTV2C.cjs');_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );_chunkAFNVTV2Ccjs.e.call(void 0, );
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { a as PageFrontMatter, b as PostFrontMatter } from '../config-BuLv3zWm.cjs';
|
|
2
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-BuLv3zWm.cjs';
|
|
3
|
+
import { Header } from '@valaxyjs/utils';
|
|
3
4
|
import 'medium-zoom';
|
|
4
5
|
import '@vueuse/integrations/useFuse';
|
|
5
6
|
import 'vanilla-lazyload';
|
|
@@ -11,34 +12,6 @@ type Page = Partial<PageFrontMatter>;
|
|
|
11
12
|
type Post = Partial<PostFrontMatter>;
|
|
12
13
|
|
|
13
14
|
type CleanUrlsMode = 'disabled' | 'without-subfolders' | 'with-subfolders';
|
|
14
|
-
interface Header {
|
|
15
|
-
/**
|
|
16
|
-
* The level of the header
|
|
17
|
-
*
|
|
18
|
-
* `1` to `6` for `<h1>` to `<h6>`
|
|
19
|
-
*/
|
|
20
|
-
level: number;
|
|
21
|
-
/**
|
|
22
|
-
* The title of the header
|
|
23
|
-
*/
|
|
24
|
-
title: string;
|
|
25
|
-
/**
|
|
26
|
-
* The slug of the header
|
|
27
|
-
*
|
|
28
|
-
* Typically the `id` attr of the header anchor
|
|
29
|
-
*/
|
|
30
|
-
slug: string;
|
|
31
|
-
/**
|
|
32
|
-
* Link of the header
|
|
33
|
-
*
|
|
34
|
-
* Typically using `#${slug}` as the anchor hash
|
|
35
|
-
*/
|
|
36
|
-
link: string;
|
|
37
|
-
/**
|
|
38
|
-
* i18n
|
|
39
|
-
*/
|
|
40
|
-
lang?: string;
|
|
41
|
-
}
|
|
42
15
|
interface PageData {
|
|
43
16
|
path: string;
|
|
44
17
|
relativePath: string;
|
|
@@ -55,4 +28,4 @@ interface PageDataPayload {
|
|
|
55
28
|
}
|
|
56
29
|
type HeadConfig = [string, Record<string, string>] | [string, Record<string, string>, string];
|
|
57
30
|
|
|
58
|
-
export { type CleanUrlsMode, type HeadConfig, type
|
|
31
|
+
export { type CleanUrlsMode, type HeadConfig, type Page, type PageData, type PageDataPayload, PageFrontMatter, type Post, PostFrontMatter };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { a as PageFrontMatter, b as PostFrontMatter } from '../config-BuLv3zWm.js';
|
|
2
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-BuLv3zWm.js';
|
|
3
|
+
import { Header } from '@valaxyjs/utils';
|
|
3
4
|
import 'medium-zoom';
|
|
4
5
|
import '@vueuse/integrations/useFuse';
|
|
5
6
|
import 'vanilla-lazyload';
|
|
@@ -11,34 +12,6 @@ type Page = Partial<PageFrontMatter>;
|
|
|
11
12
|
type Post = Partial<PostFrontMatter>;
|
|
12
13
|
|
|
13
14
|
type CleanUrlsMode = 'disabled' | 'without-subfolders' | 'with-subfolders';
|
|
14
|
-
interface Header {
|
|
15
|
-
/**
|
|
16
|
-
* The level of the header
|
|
17
|
-
*
|
|
18
|
-
* `1` to `6` for `<h1>` to `<h6>`
|
|
19
|
-
*/
|
|
20
|
-
level: number;
|
|
21
|
-
/**
|
|
22
|
-
* The title of the header
|
|
23
|
-
*/
|
|
24
|
-
title: string;
|
|
25
|
-
/**
|
|
26
|
-
* The slug of the header
|
|
27
|
-
*
|
|
28
|
-
* Typically the `id` attr of the header anchor
|
|
29
|
-
*/
|
|
30
|
-
slug: string;
|
|
31
|
-
/**
|
|
32
|
-
* Link of the header
|
|
33
|
-
*
|
|
34
|
-
* Typically using `#${slug}` as the anchor hash
|
|
35
|
-
*/
|
|
36
|
-
link: string;
|
|
37
|
-
/**
|
|
38
|
-
* i18n
|
|
39
|
-
*/
|
|
40
|
-
lang?: string;
|
|
41
|
-
}
|
|
42
15
|
interface PageData {
|
|
43
16
|
path: string;
|
|
44
17
|
relativePath: string;
|
|
@@ -55,4 +28,4 @@ interface PageDataPayload {
|
|
|
55
28
|
}
|
|
56
29
|
type HeadConfig = [string, Record<string, string>] | [string, Record<string, string>, string];
|
|
57
30
|
|
|
58
|
-
export { type CleanUrlsMode, type HeadConfig, type
|
|
31
|
+
export { type CleanUrlsMode, type HeadConfig, type Page, type PageData, type PageDataPayload, PageFrontMatter, type Post, PostFrontMatter };
|
package/dist/types/index.mjs
CHANGED
|
@@ -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-
|
|
2
|
+
import{d as e}from"../chunk-GYSOLAXM.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.19.
|
|
4
|
+
"version": "0.19.4",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -59,16 +59,15 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@antfu/utils": "^0.7.10",
|
|
61
61
|
"@ctrl/tinycolor": "^4.1.0",
|
|
62
|
-
"@iconify-json/carbon": "^1.1.36",
|
|
63
62
|
"@iconify-json/ri": "^1.1.21",
|
|
64
63
|
"@intlify/unplugin-vue-i18n": "^4.0.0",
|
|
65
64
|
"@types/js-yaml": "^4.0.9",
|
|
66
65
|
"@types/katex": "^0.16.7",
|
|
67
|
-
"@unhead/addons": "^1.9.
|
|
68
|
-
"@unhead/schema-org": "^1.9.
|
|
69
|
-
"@unhead/vue": "^1.9.
|
|
66
|
+
"@unhead/addons": "^1.9.16",
|
|
67
|
+
"@unhead/schema-org": "^1.9.16",
|
|
68
|
+
"@unhead/vue": "^1.9.16",
|
|
70
69
|
"@vitejs/plugin-vue": "^5.0.5",
|
|
71
|
-
"@vue/devtools-api": "^7.3.
|
|
70
|
+
"@vue/devtools-api": "^7.3.6",
|
|
72
71
|
"@vueuse/core": "^10.11.0",
|
|
73
72
|
"@vueuse/integrations": "^10.11.0",
|
|
74
73
|
"consola": "^3.2.3",
|
|
@@ -110,24 +109,25 @@
|
|
|
110
109
|
"pathe": "^1.1.2",
|
|
111
110
|
"pinia": "^2.1.7",
|
|
112
111
|
"qrcode": "^1.5.3",
|
|
113
|
-
"sass": "^1.77.
|
|
112
|
+
"sass": "^1.77.8",
|
|
114
113
|
"shiki": "^1.10.3",
|
|
115
114
|
"star-markdown-css": "^0.5.1",
|
|
116
|
-
"unocss": "^0.61.
|
|
117
|
-
"unplugin-vue-components": "^0.27.
|
|
115
|
+
"unocss": "^0.61.5",
|
|
116
|
+
"unplugin-vue-components": "^0.27.3",
|
|
118
117
|
"unplugin-vue-markdown": "^0.26.2",
|
|
119
118
|
"unplugin-vue-router": "^0.10.0",
|
|
120
119
|
"vanilla-lazyload": "^19.1.3",
|
|
121
|
-
"vite": "^5.3.
|
|
122
|
-
"vite-plugin-vue-devtools": "^7.3.
|
|
120
|
+
"vite": "^5.3.4",
|
|
121
|
+
"vite-plugin-vue-devtools": "^7.3.6",
|
|
123
122
|
"vite-plugin-vue-layouts": "0.11.0",
|
|
124
123
|
"vite-ssg": "0.23.7",
|
|
125
124
|
"vite-ssg-sitemap": "0.6.1",
|
|
126
|
-
"vue": "^3.4.
|
|
125
|
+
"vue": "^3.4.33",
|
|
127
126
|
"vue-i18n": "^9.13.1",
|
|
128
127
|
"vue-router": "^4.4.0",
|
|
129
128
|
"yargs": "^17.7.2",
|
|
130
|
-
"@valaxyjs/devtools": "0.19.
|
|
129
|
+
"@valaxyjs/devtools": "0.19.4",
|
|
130
|
+
"@valaxyjs/utils": "0.19.4"
|
|
131
131
|
},
|
|
132
132
|
"devDependencies": {
|
|
133
133
|
"@mdit-vue/plugin-component": "^2.1.3",
|
package/shims.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import 'vue-router'
|
|
|
3
3
|
// import './client/typed-router'
|
|
4
4
|
|
|
5
5
|
import type { Ref } from 'vue'
|
|
6
|
+
import type { Header } from '@valaxyjs/utils'
|
|
6
7
|
import type { Post } from './types'
|
|
7
|
-
import type { Header } from './node/plugins/markdown'
|
|
8
8
|
|
|
9
9
|
declare module 'valaxy-addon-*'
|
|
10
10
|
declare module '@docsearch/js' {
|
package/types/data.ts
CHANGED
|
@@ -1,37 +1,10 @@
|
|
|
1
|
+
import type { Header } from '@valaxyjs/utils'
|
|
1
2
|
import type { Post } from './posts'
|
|
2
3
|
|
|
3
4
|
export type CleanUrlsMode =
|
|
4
5
|
| 'disabled'
|
|
5
6
|
| 'without-subfolders'
|
|
6
7
|
| 'with-subfolders'
|
|
7
|
-
export interface Header {
|
|
8
|
-
/**
|
|
9
|
-
* The level of the header
|
|
10
|
-
*
|
|
11
|
-
* `1` to `6` for `<h1>` to `<h6>`
|
|
12
|
-
*/
|
|
13
|
-
level: number
|
|
14
|
-
/**
|
|
15
|
-
* The title of the header
|
|
16
|
-
*/
|
|
17
|
-
title: string
|
|
18
|
-
/**
|
|
19
|
-
* The slug of the header
|
|
20
|
-
*
|
|
21
|
-
* Typically the `id` attr of the header anchor
|
|
22
|
-
*/
|
|
23
|
-
slug: string
|
|
24
|
-
/**
|
|
25
|
-
* Link of the header
|
|
26
|
-
*
|
|
27
|
-
* Typically using `#${slug}` as the anchor hash
|
|
28
|
-
*/
|
|
29
|
-
link: string
|
|
30
|
-
/**
|
|
31
|
-
* i18n
|
|
32
|
-
*/
|
|
33
|
-
lang?: string
|
|
34
|
-
}
|
|
35
8
|
|
|
36
9
|
export interface PageData {
|
|
37
10
|
path: string
|