@redocly/theme 0.6.0 → 0.6.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.
- package/README.md +1 -1
- package/lib/ColorModeSwitcher/ColorModeSwitcher.js +1 -1
- package/lib/Footer/Footer.d.ts +6 -3
- package/lib/Footer/Footer.js +3 -3
- package/lib/PageNavigation/NextButton.d.ts +2 -0
- package/lib/PageNavigation/{NextPageLink.js → NextButton.js} +7 -7
- package/lib/PageNavigation/PageNavigation.js +5 -5
- package/lib/PageNavigation/PreviousButton.d.ts +2 -0
- package/lib/PageNavigation/{PreviousPageLink.js → PreviousButton.js} +7 -7
- package/lib/PageNavigation/index.d.ts +2 -2
- package/lib/PageNavigation/index.js +2 -2
- package/lib/Sidebar/types/NavItem.d.ts +1 -1
- package/lib/TableOfContent/TableOfContent.js +14 -19
- package/lib/TableOfContent/utils.d.ts +1 -1
- package/lib/TableOfContent/utils.js +2 -2
- package/lib/config.d.ts +342 -72
- package/lib/config.js +61 -17
- package/lib/mocks/hooks/index.js +4 -5
- package/package.json +3 -3
- package/src/ColorModeSwitcher/ColorModeSwitcher.tsx +1 -1
- package/src/Footer/Footer.tsx +8 -5
- package/src/PageNavigation/{NextPageLink.tsx → NextButton.tsx} +4 -4
- package/src/PageNavigation/PageNavigation.tsx +5 -5
- package/src/PageNavigation/{PreviousPageLink.tsx → PreviousButton.tsx} +4 -4
- package/src/PageNavigation/index.ts +2 -2
- package/src/Sidebar/types/NavItem.ts +1 -1
- package/src/TableOfContent/TableOfContent.tsx +24 -32
- package/src/TableOfContent/utils.ts +2 -2
- package/src/config.ts +73 -24
- package/src/mocks/hooks/index.ts +4 -5
- package/src/settings.yaml +2 -2
- package/src/types/portal/src/shared/constants.d.ts +0 -1
- package/src/types/portal/src/shared/types/nav.d.ts +0 -1
- package/lib/PageNavigation/NextPageLink.d.ts +0 -2
- package/lib/PageNavigation/PreviousPageLink.d.ts +0 -2
package/lib/config.d.ts
CHANGED
|
@@ -17,19 +17,30 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
|
|
|
17
17
|
link?: string | undefined;
|
|
18
18
|
favicon?: string | undefined;
|
|
19
19
|
}>>;
|
|
20
|
-
navbar: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
navbar: z.ZodOptional<z.ZodObject<z.extendShape<{
|
|
21
|
+
items: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
22
|
+
}, {
|
|
21
23
|
hide: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
-
}
|
|
24
|
+
}>, "strict", z.ZodTypeAny, {
|
|
23
25
|
hide?: boolean | undefined;
|
|
26
|
+
items?: any[] | undefined;
|
|
24
27
|
}, {
|
|
25
28
|
hide?: boolean | undefined;
|
|
29
|
+
items?: any[] | undefined;
|
|
26
30
|
}>>;
|
|
27
|
-
footer: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
footer: z.ZodOptional<z.ZodObject<z.extendShape<{
|
|
32
|
+
items: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
33
|
+
copyrightText: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, {
|
|
28
35
|
hide: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
-
}
|
|
36
|
+
}>, "strict", z.ZodTypeAny, {
|
|
30
37
|
hide?: boolean | undefined;
|
|
38
|
+
items?: any[] | undefined;
|
|
39
|
+
copyrightText?: string | undefined;
|
|
31
40
|
}, {
|
|
32
41
|
hide?: boolean | undefined;
|
|
42
|
+
items?: any[] | undefined;
|
|
43
|
+
copyrightText?: string | undefined;
|
|
33
44
|
}>>;
|
|
34
45
|
sidebar: z.ZodOptional<z.ZodObject<{
|
|
35
46
|
hide: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -38,11 +49,185 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
|
|
|
38
49
|
}, {
|
|
39
50
|
hide?: boolean | undefined;
|
|
40
51
|
}>>;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
52
|
+
scripts: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
head: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
54
|
+
src: z.ZodString;
|
|
55
|
+
async: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
crossorigin: z.ZodOptional<z.ZodString>;
|
|
57
|
+
defer: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
fetchpriority: z.ZodOptional<z.ZodString>;
|
|
59
|
+
integrity: z.ZodOptional<z.ZodString>;
|
|
60
|
+
module: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
nomodule: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
63
|
+
referrerpolicy: z.ZodOptional<z.ZodString>;
|
|
64
|
+
type: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, "passthrough", z.ZodTypeAny, {
|
|
66
|
+
async?: boolean | undefined;
|
|
67
|
+
type?: string | undefined;
|
|
68
|
+
crossorigin?: string | undefined;
|
|
69
|
+
defer?: boolean | undefined;
|
|
70
|
+
fetchpriority?: string | undefined;
|
|
71
|
+
integrity?: string | undefined;
|
|
72
|
+
module?: boolean | undefined;
|
|
73
|
+
nomodule?: boolean | undefined;
|
|
74
|
+
nonce?: string | undefined;
|
|
75
|
+
referrerpolicy?: string | undefined;
|
|
76
|
+
src: string;
|
|
77
|
+
}, {
|
|
78
|
+
async?: boolean | undefined;
|
|
79
|
+
type?: string | undefined;
|
|
80
|
+
crossorigin?: string | undefined;
|
|
81
|
+
defer?: boolean | undefined;
|
|
82
|
+
fetchpriority?: string | undefined;
|
|
83
|
+
integrity?: string | undefined;
|
|
84
|
+
module?: boolean | undefined;
|
|
85
|
+
nomodule?: boolean | undefined;
|
|
86
|
+
nonce?: string | undefined;
|
|
87
|
+
referrerpolicy?: string | undefined;
|
|
88
|
+
src: string;
|
|
89
|
+
}>, "many">>;
|
|
90
|
+
body: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
91
|
+
src: z.ZodString;
|
|
92
|
+
async: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
crossorigin: z.ZodOptional<z.ZodString>;
|
|
94
|
+
defer: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
fetchpriority: z.ZodOptional<z.ZodString>;
|
|
96
|
+
integrity: z.ZodOptional<z.ZodString>;
|
|
97
|
+
module: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
nomodule: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
100
|
+
referrerpolicy: z.ZodOptional<z.ZodString>;
|
|
101
|
+
type: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, "passthrough", z.ZodTypeAny, {
|
|
103
|
+
async?: boolean | undefined;
|
|
104
|
+
type?: string | undefined;
|
|
105
|
+
crossorigin?: string | undefined;
|
|
106
|
+
defer?: boolean | undefined;
|
|
107
|
+
fetchpriority?: string | undefined;
|
|
108
|
+
integrity?: string | undefined;
|
|
109
|
+
module?: boolean | undefined;
|
|
110
|
+
nomodule?: boolean | undefined;
|
|
111
|
+
nonce?: string | undefined;
|
|
112
|
+
referrerpolicy?: string | undefined;
|
|
113
|
+
src: string;
|
|
114
|
+
}, {
|
|
115
|
+
async?: boolean | undefined;
|
|
116
|
+
type?: string | undefined;
|
|
117
|
+
crossorigin?: string | undefined;
|
|
118
|
+
defer?: boolean | undefined;
|
|
119
|
+
fetchpriority?: string | undefined;
|
|
120
|
+
integrity?: string | undefined;
|
|
121
|
+
module?: boolean | undefined;
|
|
122
|
+
nomodule?: boolean | undefined;
|
|
123
|
+
nonce?: string | undefined;
|
|
124
|
+
referrerpolicy?: string | undefined;
|
|
125
|
+
src: string;
|
|
126
|
+
}>, "many">>;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
head?: {
|
|
129
|
+
async?: boolean | undefined;
|
|
130
|
+
type?: string | undefined;
|
|
131
|
+
crossorigin?: string | undefined;
|
|
132
|
+
defer?: boolean | undefined;
|
|
133
|
+
fetchpriority?: string | undefined;
|
|
134
|
+
integrity?: string | undefined;
|
|
135
|
+
module?: boolean | undefined;
|
|
136
|
+
nomodule?: boolean | undefined;
|
|
137
|
+
nonce?: string | undefined;
|
|
138
|
+
referrerpolicy?: string | undefined;
|
|
139
|
+
src: string;
|
|
140
|
+
}[] | undefined;
|
|
141
|
+
body?: {
|
|
142
|
+
async?: boolean | undefined;
|
|
143
|
+
type?: string | undefined;
|
|
144
|
+
crossorigin?: string | undefined;
|
|
145
|
+
defer?: boolean | undefined;
|
|
146
|
+
fetchpriority?: string | undefined;
|
|
147
|
+
integrity?: string | undefined;
|
|
148
|
+
module?: boolean | undefined;
|
|
149
|
+
nomodule?: boolean | undefined;
|
|
150
|
+
nonce?: string | undefined;
|
|
151
|
+
referrerpolicy?: string | undefined;
|
|
152
|
+
src: string;
|
|
153
|
+
}[] | undefined;
|
|
154
|
+
}, {
|
|
155
|
+
head?: {
|
|
156
|
+
async?: boolean | undefined;
|
|
157
|
+
type?: string | undefined;
|
|
158
|
+
crossorigin?: string | undefined;
|
|
159
|
+
defer?: boolean | undefined;
|
|
160
|
+
fetchpriority?: string | undefined;
|
|
161
|
+
integrity?: string | undefined;
|
|
162
|
+
module?: boolean | undefined;
|
|
163
|
+
nomodule?: boolean | undefined;
|
|
164
|
+
nonce?: string | undefined;
|
|
165
|
+
referrerpolicy?: string | undefined;
|
|
166
|
+
src: string;
|
|
167
|
+
}[] | undefined;
|
|
168
|
+
body?: {
|
|
169
|
+
async?: boolean | undefined;
|
|
170
|
+
type?: string | undefined;
|
|
171
|
+
crossorigin?: string | undefined;
|
|
172
|
+
defer?: boolean | undefined;
|
|
173
|
+
fetchpriority?: string | undefined;
|
|
174
|
+
integrity?: string | undefined;
|
|
175
|
+
module?: boolean | undefined;
|
|
176
|
+
nomodule?: boolean | undefined;
|
|
177
|
+
nonce?: string | undefined;
|
|
178
|
+
referrerpolicy?: string | undefined;
|
|
179
|
+
src: string;
|
|
180
|
+
}[] | undefined;
|
|
181
|
+
}>>;
|
|
182
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
183
|
+
href: z.ZodString;
|
|
184
|
+
as: z.ZodOptional<z.ZodString>;
|
|
185
|
+
crossorigin: z.ZodOptional<z.ZodString>;
|
|
186
|
+
fetchpriority: z.ZodOptional<z.ZodString>;
|
|
187
|
+
hreflang: z.ZodOptional<z.ZodString>;
|
|
188
|
+
imagesizes: z.ZodOptional<z.ZodString>;
|
|
189
|
+
imagesrcset: z.ZodOptional<z.ZodString>;
|
|
190
|
+
integrity: z.ZodOptional<z.ZodString>;
|
|
191
|
+
media: z.ZodOptional<z.ZodString>;
|
|
192
|
+
prefetch: z.ZodOptional<z.ZodString>;
|
|
193
|
+
referrerpolicy: z.ZodOptional<z.ZodString>;
|
|
194
|
+
rel: z.ZodOptional<z.ZodString>;
|
|
195
|
+
sizes: z.ZodOptional<z.ZodString>;
|
|
196
|
+
title: z.ZodOptional<z.ZodString>;
|
|
197
|
+
type: z.ZodOptional<z.ZodString>;
|
|
198
|
+
}, "passthrough", z.ZodTypeAny, {
|
|
199
|
+
type?: string | undefined;
|
|
200
|
+
crossorigin?: string | undefined;
|
|
201
|
+
fetchpriority?: string | undefined;
|
|
202
|
+
integrity?: string | undefined;
|
|
203
|
+
referrerpolicy?: string | undefined;
|
|
204
|
+
as?: string | undefined;
|
|
205
|
+
hreflang?: string | undefined;
|
|
206
|
+
imagesizes?: string | undefined;
|
|
207
|
+
imagesrcset?: string | undefined;
|
|
208
|
+
media?: string | undefined;
|
|
209
|
+
prefetch?: string | undefined;
|
|
210
|
+
rel?: string | undefined;
|
|
211
|
+
sizes?: string | undefined;
|
|
212
|
+
title?: string | undefined;
|
|
213
|
+
href: string;
|
|
214
|
+
}, {
|
|
215
|
+
type?: string | undefined;
|
|
216
|
+
crossorigin?: string | undefined;
|
|
217
|
+
fetchpriority?: string | undefined;
|
|
218
|
+
integrity?: string | undefined;
|
|
219
|
+
referrerpolicy?: string | undefined;
|
|
220
|
+
as?: string | undefined;
|
|
221
|
+
hreflang?: string | undefined;
|
|
222
|
+
imagesizes?: string | undefined;
|
|
223
|
+
imagesrcset?: string | undefined;
|
|
224
|
+
media?: string | undefined;
|
|
225
|
+
prefetch?: string | undefined;
|
|
226
|
+
rel?: string | undefined;
|
|
227
|
+
sizes?: string | undefined;
|
|
228
|
+
title?: string | undefined;
|
|
229
|
+
href: string;
|
|
230
|
+
}>, "many">>;
|
|
46
231
|
search: z.ZodOptional<z.ZodDefault<z.ZodObject<z.extendShape<{
|
|
47
232
|
placement: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
48
233
|
}, {
|
|
@@ -55,66 +240,63 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
|
|
|
55
240
|
placement?: string | undefined;
|
|
56
241
|
}>>>;
|
|
57
242
|
colorMode: z.ZodDefault<z.ZodOptional<z.ZodObject<z.extendShape<{
|
|
58
|
-
|
|
59
|
-
default: z.ZodOptional<z.ZodString>;
|
|
243
|
+
ignoreDetection: z.ZodOptional<z.ZodBoolean>;
|
|
60
244
|
modes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
61
245
|
}, {
|
|
62
246
|
hide: z.ZodOptional<z.ZodBoolean>;
|
|
63
247
|
}>, "strict", z.ZodTypeAny, {
|
|
64
248
|
hide?: boolean | undefined;
|
|
65
|
-
|
|
66
|
-
default?: string | undefined;
|
|
249
|
+
ignoreDetection?: boolean | undefined;
|
|
67
250
|
modes?: string[] | undefined;
|
|
68
251
|
}, {
|
|
69
252
|
hide?: boolean | undefined;
|
|
70
|
-
|
|
71
|
-
default?: string | undefined;
|
|
253
|
+
ignoreDetection?: boolean | undefined;
|
|
72
254
|
modes?: string[] | undefined;
|
|
73
255
|
}>>>;
|
|
74
256
|
navigation: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
75
|
-
|
|
76
|
-
|
|
257
|
+
nextButton: z.ZodDefault<z.ZodOptional<z.ZodObject<z.extendShape<{
|
|
258
|
+
text: z.ZodDefault<z.ZodString>;
|
|
77
259
|
}, {
|
|
78
260
|
hide: z.ZodOptional<z.ZodBoolean>;
|
|
79
261
|
}>, "strip", z.ZodTypeAny, {
|
|
80
262
|
hide?: boolean | undefined;
|
|
81
|
-
|
|
263
|
+
text: string;
|
|
82
264
|
}, {
|
|
83
265
|
hide?: boolean | undefined;
|
|
84
|
-
|
|
266
|
+
text?: string | undefined;
|
|
85
267
|
}>>>;
|
|
86
|
-
|
|
87
|
-
|
|
268
|
+
previousButton: z.ZodDefault<z.ZodOptional<z.ZodObject<z.extendShape<{
|
|
269
|
+
text: z.ZodDefault<z.ZodString>;
|
|
88
270
|
}, {
|
|
89
271
|
hide: z.ZodOptional<z.ZodBoolean>;
|
|
90
272
|
}>, "strip", z.ZodTypeAny, {
|
|
91
273
|
hide?: boolean | undefined;
|
|
92
|
-
|
|
274
|
+
text: string;
|
|
93
275
|
}, {
|
|
94
276
|
hide?: boolean | undefined;
|
|
95
|
-
|
|
277
|
+
text?: string | undefined;
|
|
96
278
|
}>>>;
|
|
97
279
|
}, "strict", z.ZodTypeAny, {
|
|
98
|
-
|
|
280
|
+
nextButton: {
|
|
99
281
|
hide?: boolean | undefined;
|
|
100
|
-
|
|
282
|
+
text: string;
|
|
101
283
|
};
|
|
102
|
-
|
|
284
|
+
previousButton: {
|
|
103
285
|
hide?: boolean | undefined;
|
|
104
|
-
|
|
286
|
+
text: string;
|
|
105
287
|
};
|
|
106
288
|
}, {
|
|
107
|
-
|
|
289
|
+
nextButton?: {
|
|
108
290
|
hide?: boolean | undefined;
|
|
109
|
-
|
|
291
|
+
text?: string | undefined;
|
|
110
292
|
} | undefined;
|
|
111
|
-
|
|
293
|
+
previousButton?: {
|
|
112
294
|
hide?: boolean | undefined;
|
|
113
|
-
|
|
295
|
+
text?: string | undefined;
|
|
114
296
|
} | undefined;
|
|
115
297
|
}>>>;
|
|
116
298
|
markdown: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
117
|
-
|
|
299
|
+
frontMatterKeysToResolve: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
118
300
|
lastUpdatedBlock: z.ZodOptional<z.ZodDefault<z.ZodObject<z.extendShape<{
|
|
119
301
|
format: z.ZodOptional<z.ZodDefault<z.ZodEnum<["timeago", "iso", "long", "short"]>>>;
|
|
120
302
|
locale: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
@@ -131,17 +313,17 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
|
|
|
131
313
|
}>>>;
|
|
132
314
|
toc: z.ZodDefault<z.ZodOptional<z.ZodObject<z.extendShape<{
|
|
133
315
|
header: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
134
|
-
|
|
316
|
+
depth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
135
317
|
}, {
|
|
136
318
|
hide: z.ZodOptional<z.ZodBoolean>;
|
|
137
319
|
}>, "strip", z.ZodTypeAny, {
|
|
138
320
|
hide?: boolean | undefined;
|
|
139
321
|
header?: string | undefined;
|
|
140
|
-
|
|
322
|
+
depth?: number | undefined;
|
|
141
323
|
}, {
|
|
142
324
|
hide?: boolean | undefined;
|
|
143
325
|
header?: string | undefined;
|
|
144
|
-
|
|
326
|
+
depth?: number | undefined;
|
|
145
327
|
}>>>;
|
|
146
328
|
editPage: z.ZodOptional<z.ZodDefault<z.ZodObject<z.extendShape<{
|
|
147
329
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -156,9 +338,9 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
|
|
|
156
338
|
text: string;
|
|
157
339
|
}, {
|
|
158
340
|
hide?: boolean | undefined;
|
|
341
|
+
text?: string | undefined;
|
|
159
342
|
baseUrl?: string | undefined;
|
|
160
343
|
icon?: string | undefined;
|
|
161
|
-
text?: string | undefined;
|
|
162
344
|
}>>>;
|
|
163
345
|
copyCodeSnippet: z.ZodDefault<z.ZodOptional<z.ZodObject<z.extendShape<{
|
|
164
346
|
buttonText: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
@@ -181,7 +363,7 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
|
|
|
181
363
|
toasterDuration?: number | undefined;
|
|
182
364
|
}>>>;
|
|
183
365
|
}, "strict", z.ZodTypeAny, {
|
|
184
|
-
|
|
366
|
+
frontMatterKeysToResolve?: string[] | undefined;
|
|
185
367
|
lastUpdatedBlock?: {
|
|
186
368
|
hide?: boolean | undefined;
|
|
187
369
|
format?: "timeago" | "iso" | "long" | "short" | undefined;
|
|
@@ -196,7 +378,7 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
|
|
|
196
378
|
toc: {
|
|
197
379
|
hide?: boolean | undefined;
|
|
198
380
|
header?: string | undefined;
|
|
199
|
-
|
|
381
|
+
depth?: number | undefined;
|
|
200
382
|
};
|
|
201
383
|
copyCodeSnippet: {
|
|
202
384
|
hide?: boolean | undefined;
|
|
@@ -206,7 +388,7 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
|
|
|
206
388
|
toasterDuration?: number | undefined;
|
|
207
389
|
};
|
|
208
390
|
}, {
|
|
209
|
-
|
|
391
|
+
frontMatterKeysToResolve?: string[] | undefined;
|
|
210
392
|
lastUpdatedBlock?: {
|
|
211
393
|
hide?: boolean | undefined;
|
|
212
394
|
format?: "timeago" | "iso" | "long" | "short" | undefined;
|
|
@@ -215,13 +397,13 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
|
|
|
215
397
|
toc?: {
|
|
216
398
|
hide?: boolean | undefined;
|
|
217
399
|
header?: string | undefined;
|
|
218
|
-
|
|
400
|
+
depth?: number | undefined;
|
|
219
401
|
} | undefined;
|
|
220
402
|
editPage?: {
|
|
221
403
|
hide?: boolean | undefined;
|
|
404
|
+
text?: string | undefined;
|
|
222
405
|
baseUrl?: string | undefined;
|
|
223
406
|
icon?: string | undefined;
|
|
224
|
-
text?: string | undefined;
|
|
225
407
|
} | undefined;
|
|
226
408
|
copyCodeSnippet?: {
|
|
227
409
|
hide?: boolean | undefined;
|
|
@@ -243,24 +425,67 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
|
|
|
243
425
|
} | undefined;
|
|
244
426
|
navbar?: {
|
|
245
427
|
hide?: boolean | undefined;
|
|
428
|
+
items?: any[] | undefined;
|
|
246
429
|
} | undefined;
|
|
247
430
|
footer?: {
|
|
248
431
|
hide?: boolean | undefined;
|
|
432
|
+
items?: any[] | undefined;
|
|
433
|
+
copyrightText?: string | undefined;
|
|
249
434
|
} | undefined;
|
|
250
435
|
sidebar?: {
|
|
251
436
|
hide?: boolean | undefined;
|
|
252
437
|
} | undefined;
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
438
|
+
scripts?: {
|
|
439
|
+
head?: {
|
|
440
|
+
async?: boolean | undefined;
|
|
441
|
+
type?: string | undefined;
|
|
442
|
+
crossorigin?: string | undefined;
|
|
443
|
+
defer?: boolean | undefined;
|
|
444
|
+
fetchpriority?: string | undefined;
|
|
445
|
+
integrity?: string | undefined;
|
|
446
|
+
module?: boolean | undefined;
|
|
447
|
+
nomodule?: boolean | undefined;
|
|
448
|
+
nonce?: string | undefined;
|
|
449
|
+
referrerpolicy?: string | undefined;
|
|
450
|
+
src: string;
|
|
451
|
+
}[] | undefined;
|
|
452
|
+
body?: {
|
|
453
|
+
async?: boolean | undefined;
|
|
454
|
+
type?: string | undefined;
|
|
455
|
+
crossorigin?: string | undefined;
|
|
456
|
+
defer?: boolean | undefined;
|
|
457
|
+
fetchpriority?: string | undefined;
|
|
458
|
+
integrity?: string | undefined;
|
|
459
|
+
module?: boolean | undefined;
|
|
460
|
+
nomodule?: boolean | undefined;
|
|
461
|
+
nonce?: string | undefined;
|
|
462
|
+
referrerpolicy?: string | undefined;
|
|
463
|
+
src: string;
|
|
464
|
+
}[] | undefined;
|
|
465
|
+
} | undefined;
|
|
466
|
+
links?: {
|
|
467
|
+
type?: string | undefined;
|
|
468
|
+
crossorigin?: string | undefined;
|
|
469
|
+
fetchpriority?: string | undefined;
|
|
470
|
+
integrity?: string | undefined;
|
|
471
|
+
referrerpolicy?: string | undefined;
|
|
472
|
+
as?: string | undefined;
|
|
473
|
+
hreflang?: string | undefined;
|
|
474
|
+
imagesizes?: string | undefined;
|
|
475
|
+
imagesrcset?: string | undefined;
|
|
476
|
+
media?: string | undefined;
|
|
477
|
+
prefetch?: string | undefined;
|
|
478
|
+
rel?: string | undefined;
|
|
479
|
+
sizes?: string | undefined;
|
|
480
|
+
title?: string | undefined;
|
|
481
|
+
href: string;
|
|
482
|
+
}[] | undefined;
|
|
258
483
|
search?: {
|
|
259
484
|
hide?: boolean | undefined;
|
|
260
485
|
placement?: string | undefined;
|
|
261
486
|
} | undefined;
|
|
262
487
|
markdown?: {
|
|
263
|
-
|
|
488
|
+
frontMatterKeysToResolve?: string[] | undefined;
|
|
264
489
|
lastUpdatedBlock?: {
|
|
265
490
|
hide?: boolean | undefined;
|
|
266
491
|
format?: "timeago" | "iso" | "long" | "short" | undefined;
|
|
@@ -275,7 +500,7 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
|
|
|
275
500
|
toc: {
|
|
276
501
|
hide?: boolean | undefined;
|
|
277
502
|
header?: string | undefined;
|
|
278
|
-
|
|
503
|
+
depth?: number | undefined;
|
|
279
504
|
};
|
|
280
505
|
copyCodeSnippet: {
|
|
281
506
|
hide?: boolean | undefined;
|
|
@@ -289,18 +514,17 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
|
|
|
289
514
|
graphql?: {} | undefined;
|
|
290
515
|
colorMode: {
|
|
291
516
|
hide?: boolean | undefined;
|
|
292
|
-
|
|
293
|
-
default?: string | undefined;
|
|
517
|
+
ignoreDetection?: boolean | undefined;
|
|
294
518
|
modes?: string[] | undefined;
|
|
295
519
|
};
|
|
296
520
|
navigation: {
|
|
297
|
-
|
|
521
|
+
nextButton: {
|
|
298
522
|
hide?: boolean | undefined;
|
|
299
|
-
|
|
523
|
+
text: string;
|
|
300
524
|
};
|
|
301
|
-
|
|
525
|
+
previousButton: {
|
|
302
526
|
hide?: boolean | undefined;
|
|
303
|
-
|
|
527
|
+
text: string;
|
|
304
528
|
};
|
|
305
529
|
};
|
|
306
530
|
}, {
|
|
@@ -313,40 +537,82 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
|
|
|
313
537
|
} | undefined;
|
|
314
538
|
navbar?: {
|
|
315
539
|
hide?: boolean | undefined;
|
|
540
|
+
items?: any[] | undefined;
|
|
316
541
|
} | undefined;
|
|
317
542
|
footer?: {
|
|
318
543
|
hide?: boolean | undefined;
|
|
544
|
+
items?: any[] | undefined;
|
|
545
|
+
copyrightText?: string | undefined;
|
|
319
546
|
} | undefined;
|
|
320
547
|
sidebar?: {
|
|
321
548
|
hide?: boolean | undefined;
|
|
322
549
|
} | undefined;
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
550
|
+
scripts?: {
|
|
551
|
+
head?: {
|
|
552
|
+
async?: boolean | undefined;
|
|
553
|
+
type?: string | undefined;
|
|
554
|
+
crossorigin?: string | undefined;
|
|
555
|
+
defer?: boolean | undefined;
|
|
556
|
+
fetchpriority?: string | undefined;
|
|
557
|
+
integrity?: string | undefined;
|
|
558
|
+
module?: boolean | undefined;
|
|
559
|
+
nomodule?: boolean | undefined;
|
|
560
|
+
nonce?: string | undefined;
|
|
561
|
+
referrerpolicy?: string | undefined;
|
|
562
|
+
src: string;
|
|
563
|
+
}[] | undefined;
|
|
564
|
+
body?: {
|
|
565
|
+
async?: boolean | undefined;
|
|
566
|
+
type?: string | undefined;
|
|
567
|
+
crossorigin?: string | undefined;
|
|
568
|
+
defer?: boolean | undefined;
|
|
569
|
+
fetchpriority?: string | undefined;
|
|
570
|
+
integrity?: string | undefined;
|
|
571
|
+
module?: boolean | undefined;
|
|
572
|
+
nomodule?: boolean | undefined;
|
|
573
|
+
nonce?: string | undefined;
|
|
574
|
+
referrerpolicy?: string | undefined;
|
|
575
|
+
src: string;
|
|
576
|
+
}[] | undefined;
|
|
577
|
+
} | undefined;
|
|
578
|
+
links?: {
|
|
579
|
+
type?: string | undefined;
|
|
580
|
+
crossorigin?: string | undefined;
|
|
581
|
+
fetchpriority?: string | undefined;
|
|
582
|
+
integrity?: string | undefined;
|
|
583
|
+
referrerpolicy?: string | undefined;
|
|
584
|
+
as?: string | undefined;
|
|
585
|
+
hreflang?: string | undefined;
|
|
586
|
+
imagesizes?: string | undefined;
|
|
587
|
+
imagesrcset?: string | undefined;
|
|
588
|
+
media?: string | undefined;
|
|
589
|
+
prefetch?: string | undefined;
|
|
590
|
+
rel?: string | undefined;
|
|
591
|
+
sizes?: string | undefined;
|
|
592
|
+
title?: string | undefined;
|
|
593
|
+
href: string;
|
|
594
|
+
}[] | undefined;
|
|
328
595
|
search?: {
|
|
329
596
|
hide?: boolean | undefined;
|
|
330
597
|
placement?: string | undefined;
|
|
331
598
|
} | undefined;
|
|
332
599
|
colorMode?: {
|
|
333
600
|
hide?: boolean | undefined;
|
|
334
|
-
|
|
335
|
-
default?: string | undefined;
|
|
601
|
+
ignoreDetection?: boolean | undefined;
|
|
336
602
|
modes?: string[] | undefined;
|
|
337
603
|
} | undefined;
|
|
338
604
|
navigation?: {
|
|
339
|
-
|
|
605
|
+
nextButton?: {
|
|
340
606
|
hide?: boolean | undefined;
|
|
341
|
-
|
|
607
|
+
text?: string | undefined;
|
|
342
608
|
} | undefined;
|
|
343
|
-
|
|
609
|
+
previousButton?: {
|
|
344
610
|
hide?: boolean | undefined;
|
|
345
|
-
|
|
611
|
+
text?: string | undefined;
|
|
346
612
|
} | undefined;
|
|
347
613
|
} | undefined;
|
|
348
614
|
markdown?: {
|
|
349
|
-
|
|
615
|
+
frontMatterKeysToResolve?: string[] | undefined;
|
|
350
616
|
lastUpdatedBlock?: {
|
|
351
617
|
hide?: boolean | undefined;
|
|
352
618
|
format?: "timeago" | "iso" | "long" | "short" | undefined;
|
|
@@ -355,13 +621,13 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
|
|
|
355
621
|
toc?: {
|
|
356
622
|
hide?: boolean | undefined;
|
|
357
623
|
header?: string | undefined;
|
|
358
|
-
|
|
624
|
+
depth?: number | undefined;
|
|
359
625
|
} | undefined;
|
|
360
626
|
editPage?: {
|
|
361
627
|
hide?: boolean | undefined;
|
|
628
|
+
text?: string | undefined;
|
|
362
629
|
baseUrl?: string | undefined;
|
|
363
630
|
icon?: string | undefined;
|
|
364
|
-
text?: string | undefined;
|
|
365
631
|
} | undefined;
|
|
366
632
|
copyCodeSnippet?: {
|
|
367
633
|
hide?: boolean | undefined;
|
|
@@ -375,11 +641,15 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
|
|
|
375
641
|
graphql?: {} | undefined;
|
|
376
642
|
}>>;
|
|
377
643
|
export declare type ThemeConfig = z.infer<typeof ThemeConfig>;
|
|
378
|
-
export declare type ThemeUIConfig = Omit<ThemeConfig, '
|
|
379
|
-
|
|
380
|
-
|
|
644
|
+
export declare type ThemeUIConfig = Omit<ThemeConfig, 'navbar' | 'footer' | 'links' | 'scripts'> & {
|
|
645
|
+
navbar?: any;
|
|
646
|
+
footer?: any;
|
|
381
647
|
auth?: {
|
|
382
|
-
|
|
648
|
+
idpsInfo?: {
|
|
649
|
+
idpId: string;
|
|
650
|
+
type: string;
|
|
651
|
+
title: string | undefined;
|
|
652
|
+
}[];
|
|
383
653
|
devLogin?: boolean;
|
|
384
654
|
};
|
|
385
655
|
};
|