@mintlify/validation 0.1.246 → 0.1.247
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/dist/mint-config/schemas/v2/index.d.ts +5215 -2155
- package/dist/mint-config/schemas/v2/index.js +8 -6
- package/dist/mint-config/schemas/v2/properties/api.d.ts +11 -11
- package/dist/mint-config/schemas/v2/properties/api.js +3 -5
- package/dist/mint-config/schemas/v2/properties/appearance.d.ts +4 -4
- package/dist/mint-config/schemas/v2/properties/appearance.js +6 -3
- package/dist/mint-config/schemas/v2/properties/icons.d.ts +2 -2
- package/dist/mint-config/schemas/v2/properties/icons.js +3 -1
- package/dist/mint-config/schemas/v2/properties/index.d.ts +9 -0
- package/dist/mint-config/schemas/v2/properties/index.js +9 -0
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +225 -2
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +10 -16
- package/dist/mint-config/schemas/v2/properties/navigation/divisionSchemas.d.ts +7 -0
- package/dist/mint-config/schemas/v2/properties/navigation/divisionSchemas.js +26 -0
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +155 -2
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +10 -16
- package/dist/mint-config/schemas/v2/properties/navigation/global.d.ts +25 -0
- package/dist/mint-config/schemas/v2/properties/navigation/groups.d.ts +638 -6
- package/dist/mint-config/schemas/v2/properties/navigation/groups.js +15 -7
- package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +1338 -295
- package/dist/mint-config/schemas/v2/properties/navigation/index.js +20 -18
- package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +47 -214
- package/dist/mint-config/schemas/v2/properties/navigation/languages.js +10 -18
- package/dist/mint-config/schemas/v2/properties/navigation/pages.d.ts +4 -0
- package/dist/mint-config/schemas/v2/properties/navigation/pages.js +6 -2
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +153 -2
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +8 -16
- package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +81 -2
- package/dist/mint-config/schemas/v2/properties/navigation/version.js +10 -16
- package/dist/mint-config/schemas/v2/properties/reusable/divisions.d.ts +2 -0
- package/dist/mint-config/schemas/v2/properties/reusable/divisions.js +1 -0
- package/dist/mint-config/schemas/v2/properties/reusable/index.d.ts +4 -0
- package/dist/mint-config/schemas/v2/properties/reusable/index.js +4 -0
- package/dist/mint-config/schemas/v2/properties/reusable/page.d.ts +86 -0
- package/dist/mint-config/schemas/v2/properties/reusable/page.js +27 -0
- package/dist/mint-config/schemas/v2/properties/seo.d.ts +2 -2
- package/dist/mint-config/schemas/v2/properties/seo.js +1 -2
- package/dist/mint-config/schemas/v2/properties/styling.d.ts +6 -6
- package/dist/mint-config/schemas/v2/properties/styling.js +3 -6
- package/dist/mint-config/schemas/v2/themes/{quill.d.ts → linden.d.ts} +740 -540
- package/dist/mint-config/schemas/v2/themes/linden.js +3 -0
- package/dist/mint-config/schemas/v2/themes/{venus.d.ts → maple.d.ts} +740 -540
- package/dist/mint-config/schemas/v2/themes/maple.js +3 -0
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +736 -536
- package/dist/mint-config/schemas/v2/themes/{prism.d.ts → palm.d.ts} +740 -540
- package/dist/mint-config/schemas/v2/themes/palm.js +3 -0
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +520 -320
- package/dist/mint-config/schemas/v2/themes/willow.d.ts +2262 -0
- package/dist/mint-config/schemas/v2/themes/willow.js +3 -0
- package/dist/mint-config/upgrades/upgradeToDocsConfig.d.ts +2 -5
- package/dist/mint-config/upgrades/upgradeToDocsConfig.js +28 -11
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/mint-config/schemas/v2/themes/prism.js +0 -3
- package/dist/mint-config/schemas/v2/themes/quill.js +0 -3
- package/dist/mint-config/schemas/v2/themes/venus.js +0 -3
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const versionSchema: z.ZodType;
|
|
3
2
|
export declare const nonRecursiveVersionSchema: z.ZodIntersection<z.ZodObject<{
|
|
4
3
|
version: z.ZodString;
|
|
5
4
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
version: string;
|
|
8
8
|
hidden?: boolean | undefined;
|
|
9
|
+
openapi?: string | string[] | undefined;
|
|
9
10
|
}, {
|
|
10
11
|
version: string;
|
|
11
12
|
hidden?: boolean | undefined;
|
|
13
|
+
openapi?: string | string[] | undefined;
|
|
12
14
|
}>, z.ZodObject<{
|
|
13
15
|
href: z.ZodString;
|
|
14
16
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -16,6 +18,83 @@ export declare const nonRecursiveVersionSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
16
18
|
}, {
|
|
17
19
|
href: string;
|
|
18
20
|
}>>;
|
|
19
|
-
export declare const
|
|
21
|
+
export declare const versionSchema: z.ZodIntersection<z.ZodObject<{
|
|
22
|
+
version: z.ZodString;
|
|
23
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
version: string;
|
|
27
|
+
hidden?: boolean | undefined;
|
|
28
|
+
openapi?: string | string[] | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
version: string;
|
|
31
|
+
hidden?: boolean | undefined;
|
|
32
|
+
openapi?: string | string[] | undefined;
|
|
33
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
34
|
+
href: z.ZodString;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
href: string;
|
|
37
|
+
}, {
|
|
38
|
+
href: string;
|
|
39
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>;
|
|
40
|
+
export declare const decoratedVersionSchema: z.ZodIntersection<z.ZodObject<{
|
|
41
|
+
version: z.ZodString;
|
|
42
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
version: string;
|
|
46
|
+
hidden?: boolean | undefined;
|
|
47
|
+
openapi?: string | string[] | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
version: string;
|
|
50
|
+
hidden?: boolean | undefined;
|
|
51
|
+
openapi?: string | string[] | undefined;
|
|
52
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
53
|
+
href: z.ZodString;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
href: string;
|
|
56
|
+
}, {
|
|
57
|
+
href: string;
|
|
58
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>;
|
|
59
|
+
export declare const versionsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
60
|
+
version: z.ZodString;
|
|
61
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
version: string;
|
|
65
|
+
hidden?: boolean | undefined;
|
|
66
|
+
openapi?: string | string[] | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
version: string;
|
|
69
|
+
hidden?: boolean | undefined;
|
|
70
|
+
openapi?: string | string[] | undefined;
|
|
71
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
72
|
+
href: z.ZodString;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
href: string;
|
|
75
|
+
}, {
|
|
76
|
+
href: string;
|
|
77
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, "many">;
|
|
78
|
+
export declare const decoratedVersionsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
79
|
+
version: z.ZodString;
|
|
80
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
version: string;
|
|
84
|
+
hidden?: boolean | undefined;
|
|
85
|
+
openapi?: string | string[] | undefined;
|
|
86
|
+
}, {
|
|
87
|
+
version: string;
|
|
88
|
+
hidden?: boolean | undefined;
|
|
89
|
+
openapi?: string | string[] | undefined;
|
|
90
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
91
|
+
href: z.ZodString;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
href: string;
|
|
94
|
+
}, {
|
|
95
|
+
href: string;
|
|
96
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, "many">;
|
|
20
97
|
export type VersionsConfig = z.infer<typeof versionsSchema>;
|
|
21
98
|
export type VersionConfig = z.infer<typeof versionSchema>;
|
|
99
|
+
export type DecoratedVersionsConfig = z.infer<typeof decoratedVersionsSchema>;
|
|
100
|
+
export type DecoratedVersionConfig = z.infer<typeof decoratedVersionSchema>;
|
|
@@ -2,25 +2,19 @@ import { z } from 'zod';
|
|
|
2
2
|
import { hiddenSchema } from '../reusable/hidden.js';
|
|
3
3
|
import { hrefSchema } from '../reusable/href.js';
|
|
4
4
|
import { openApiSchema } from '../reusable/openapi.js';
|
|
5
|
-
import {
|
|
6
|
-
import { dropdownsSchema } from './dropdown.js';
|
|
7
|
-
import { groupsSchema } from './groups.js';
|
|
8
|
-
import { languagesSchema } from './languages.js';
|
|
9
|
-
import { pagesSchema } from './pages.js';
|
|
10
|
-
import { tabsSchema } from './tabs.js';
|
|
5
|
+
import { getDivisionSchemasExcluding, registerDivisionSchema } from './divisionSchemas.js';
|
|
11
6
|
const baseVersionSchema = z.object({
|
|
12
7
|
version: z.string().nonempty().describe('The name of the version'),
|
|
13
8
|
hidden: hiddenSchema.optional(),
|
|
9
|
+
openapi: openApiSchema.optional(),
|
|
14
10
|
});
|
|
15
|
-
|
|
16
|
-
z.object({ openapi: openApiSchema }),
|
|
17
|
-
z.object({ href: hrefSchema }),
|
|
18
|
-
z.lazy(() => z.object({ languages: languagesSchema })),
|
|
19
|
-
z.lazy(() => z.object({ tabs: tabsSchema })),
|
|
20
|
-
z.lazy(() => z.object({ dropdowns: dropdownsSchema })),
|
|
21
|
-
z.lazy(() => z.object({ anchors: anchorsSchema })),
|
|
22
|
-
z.lazy(() => z.object({ groups: groupsSchema })),
|
|
23
|
-
z.lazy(() => z.object({ pages: pagesSchema })),
|
|
24
|
-
]));
|
|
11
|
+
const createVersionSchema = (type) => baseVersionSchema.and(z.union([z.object({ href: hrefSchema }), ...getDivisionSchemasExcluding('versions', type)]));
|
|
25
12
|
export const nonRecursiveVersionSchema = baseVersionSchema.and(z.object({ href: hrefSchema }));
|
|
13
|
+
export const versionSchema = createVersionSchema('default');
|
|
14
|
+
export const decoratedVersionSchema = createVersionSchema('decorated');
|
|
26
15
|
export const versionsSchema = z.array(versionSchema).describe('Organizing by versions');
|
|
16
|
+
export const decoratedVersionsSchema = z
|
|
17
|
+
.array(decoratedVersionSchema)
|
|
18
|
+
.describe('Organizing by versions');
|
|
19
|
+
registerDivisionSchema('versions', versionsSchema, 'default');
|
|
20
|
+
registerDivisionSchema('versions', decoratedVersionsSchema, 'decorated');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const divisions = ['anchors', 'dropdowns', 'languages', 'tabs', 'versions'];
|
|
@@ -1,2 +1,88 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const pageSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
3
|
+
export declare const decoratedPageSchema: z.ZodObject<{
|
|
4
|
+
href: z.ZodString;
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
sidebarTitle: z.ZodOptional<z.ZodString>;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
api: z.ZodOptional<z.ZodString>;
|
|
9
|
+
openapi: z.ZodOptional<z.ZodString>;
|
|
10
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
11
|
+
authMethod: z.ZodOptional<z.ZodString>;
|
|
12
|
+
auth: z.ZodOptional<z.ZodString>;
|
|
13
|
+
version: z.ZodOptional<z.ZodString>;
|
|
14
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
15
|
+
hideFooterPagination: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
authors: z.ZodOptional<z.ZodUnknown>;
|
|
17
|
+
lastUpdatedDate: z.ZodOptional<z.ZodString>;
|
|
18
|
+
createdDate: z.ZodOptional<z.ZodString>;
|
|
19
|
+
'openapi-schema': z.ZodOptional<z.ZodString>;
|
|
20
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
21
|
+
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
22
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
name: string;
|
|
25
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
name: string;
|
|
28
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
29
|
+
}>]>>;
|
|
30
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
31
|
+
url: z.ZodOptional<z.ZodString>;
|
|
32
|
+
hideApiMarker: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
noindex: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
href: string;
|
|
37
|
+
title: string;
|
|
38
|
+
sidebarTitle?: string | undefined;
|
|
39
|
+
description?: string | undefined;
|
|
40
|
+
api?: string | undefined;
|
|
41
|
+
openapi?: string | undefined;
|
|
42
|
+
contentType?: string | undefined;
|
|
43
|
+
authMethod?: string | undefined;
|
|
44
|
+
auth?: string | undefined;
|
|
45
|
+
version?: string | undefined;
|
|
46
|
+
mode?: string | undefined;
|
|
47
|
+
hideFooterPagination?: boolean | undefined;
|
|
48
|
+
authors?: unknown;
|
|
49
|
+
lastUpdatedDate?: string | undefined;
|
|
50
|
+
createdDate?: string | undefined;
|
|
51
|
+
'openapi-schema'?: string | undefined;
|
|
52
|
+
icon?: string | {
|
|
53
|
+
name: string;
|
|
54
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
tag?: string | undefined;
|
|
57
|
+
url?: string | undefined;
|
|
58
|
+
hideApiMarker?: boolean | undefined;
|
|
59
|
+
noindex?: boolean | undefined;
|
|
60
|
+
isPublic?: boolean | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
href: string;
|
|
63
|
+
title: string;
|
|
64
|
+
sidebarTitle?: string | undefined;
|
|
65
|
+
description?: string | undefined;
|
|
66
|
+
api?: string | undefined;
|
|
67
|
+
openapi?: string | undefined;
|
|
68
|
+
contentType?: string | undefined;
|
|
69
|
+
authMethod?: string | undefined;
|
|
70
|
+
auth?: string | undefined;
|
|
71
|
+
version?: string | undefined;
|
|
72
|
+
mode?: string | undefined;
|
|
73
|
+
hideFooterPagination?: boolean | undefined;
|
|
74
|
+
authors?: unknown;
|
|
75
|
+
lastUpdatedDate?: string | undefined;
|
|
76
|
+
createdDate?: string | undefined;
|
|
77
|
+
'openapi-schema'?: string | undefined;
|
|
78
|
+
icon?: string | {
|
|
79
|
+
name: string;
|
|
80
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
81
|
+
} | undefined;
|
|
82
|
+
tag?: string | undefined;
|
|
83
|
+
url?: string | undefined;
|
|
84
|
+
hideApiMarker?: boolean | undefined;
|
|
85
|
+
noindex?: boolean | undefined;
|
|
86
|
+
isPublic?: boolean | undefined;
|
|
87
|
+
}>;
|
|
88
|
+
export type DecoratedPageConfig = z.infer<typeof decoratedPageSchema>;
|
|
@@ -1,7 +1,34 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { normalizeRelativePath } from '../../../../transforms/normalizeRelativePath.js';
|
|
3
|
+
import { iconSchema } from './icon.js';
|
|
3
4
|
export const pageSchema = z
|
|
4
5
|
.string()
|
|
5
6
|
.nonempty()
|
|
6
7
|
.transform(normalizeRelativePath)
|
|
7
8
|
.describe('A page in the navigation. Referenced by the path to the page. Example: path/to/page');
|
|
9
|
+
export const decoratedPageSchema = z
|
|
10
|
+
.object({
|
|
11
|
+
href: z.string(),
|
|
12
|
+
title: z.string(),
|
|
13
|
+
sidebarTitle: z.string().optional(),
|
|
14
|
+
description: z.string().optional(),
|
|
15
|
+
api: z.string().optional(),
|
|
16
|
+
openapi: z.string().optional(),
|
|
17
|
+
contentType: z.string().optional(),
|
|
18
|
+
authMethod: z.string().optional(),
|
|
19
|
+
auth: z.string().optional(),
|
|
20
|
+
version: z.string().optional(),
|
|
21
|
+
mode: z.string().optional(),
|
|
22
|
+
hideFooterPagination: z.boolean().optional(),
|
|
23
|
+
authors: z.unknown().optional(),
|
|
24
|
+
lastUpdatedDate: z.string().optional(),
|
|
25
|
+
createdDate: z.string().optional(),
|
|
26
|
+
'openapi-schema': z.string().optional(),
|
|
27
|
+
icon: iconSchema.optional(),
|
|
28
|
+
tag: z.string().optional(),
|
|
29
|
+
url: z.string().optional(),
|
|
30
|
+
hideApiMarker: z.boolean().optional(),
|
|
31
|
+
noindex: z.boolean().optional(),
|
|
32
|
+
isPublic: z.boolean().optional(),
|
|
33
|
+
})
|
|
34
|
+
.describe('page metadata tags in the navigation');
|
|
@@ -2,10 +2,10 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const metatagsSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3
3
|
export declare const seoSchema: z.ZodObject<{
|
|
4
4
|
metatags: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
5
|
-
indexing: z.
|
|
5
|
+
indexing: z.ZodOptional<z.ZodEnum<["navigable", "all"]>>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
indexing: "all" | "navigable";
|
|
8
7
|
metatags?: Record<string, string> | undefined;
|
|
8
|
+
indexing?: "all" | "navigable" | undefined;
|
|
9
9
|
}, {
|
|
10
10
|
metatags?: Record<string, string> | undefined;
|
|
11
11
|
indexing?: "all" | "navigable" | undefined;
|
|
@@ -9,7 +9,6 @@ export const seoSchema = z
|
|
|
9
9
|
indexing: z
|
|
10
10
|
.enum(['navigable', 'all'])
|
|
11
11
|
.optional()
|
|
12
|
-
.
|
|
13
|
-
.describe('Specify which pages to be indexed by search engines. Setting "navigable" indexes pages that are set in navigation, "all" indexes all pages'),
|
|
12
|
+
.describe('Specify which pages to be indexed by search engines. Setting `navigable` indexes pages that are set in navigation, `all` indexes all pages. Defaults to `navigable`.'),
|
|
14
13
|
})
|
|
15
14
|
.describe('SEO indexing configurations');
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const stylingSchema: z.ZodObject<{
|
|
3
|
-
rounded: z.
|
|
4
|
-
eyebrows: z.
|
|
5
|
-
codeblocks: z.
|
|
3
|
+
rounded: z.ZodOptional<z.ZodEnum<["regular", "sharp"]>>;
|
|
4
|
+
eyebrows: z.ZodOptional<z.ZodEnum<["section", "breadcrumbs"]>>;
|
|
5
|
+
codeblocks: z.ZodOptional<z.ZodEnum<["system", "dark"]>>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
rounded
|
|
8
|
-
eyebrows
|
|
9
|
-
codeblocks
|
|
7
|
+
rounded?: "regular" | "sharp" | undefined;
|
|
8
|
+
eyebrows?: "section" | "breadcrumbs" | undefined;
|
|
9
|
+
codeblocks?: "dark" | "system" | undefined;
|
|
10
10
|
}, {
|
|
11
11
|
rounded?: "regular" | "sharp" | undefined;
|
|
12
12
|
eyebrows?: "section" | "breadcrumbs" | undefined;
|
|
@@ -4,17 +4,14 @@ export const stylingSchema = z
|
|
|
4
4
|
rounded: z
|
|
5
5
|
.enum(['regular', 'sharp'])
|
|
6
6
|
.optional()
|
|
7
|
-
.
|
|
8
|
-
.describe('Whether corners are rounded or sharp'),
|
|
7
|
+
.describe('Whether corners are rounded or sharp. Defaults to `regular`.'),
|
|
9
8
|
eyebrows: z
|
|
10
9
|
.enum(['section', 'breadcrumbs'])
|
|
11
10
|
.optional()
|
|
12
|
-
.
|
|
13
|
-
.describe('The eyebrows style of the content'),
|
|
11
|
+
.describe('The eyebrows style of the content. Defaults to `section`.'),
|
|
14
12
|
codeblocks: z
|
|
15
13
|
.enum(['system', 'dark'])
|
|
16
14
|
.optional()
|
|
17
|
-
.
|
|
18
|
-
.describe('The codeblock theme'),
|
|
15
|
+
.describe('The codeblock theme. Defaults to `system`.'),
|
|
19
16
|
})
|
|
20
17
|
.describe('Styling configurations');
|