@xyd-js/core 0.1.0-xyd.13 → 0.1.0-xyd.15
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/CHANGELOG.md +12 -0
- package/dist/index.d.ts +952 -111
- package/dist/index.js +0 -17
- package/dist/index.js.map +1 -1
- package/index.ts +3 -2
- package/package.json +11 -2
- package/src/types/metadata.ts +123 -0
- package/src/types/seo.ts +475 -0
- package/src/types/settings.ts +545 -231
- package/tsconfig.json +1 -0
- package/tsconfig.tsup.json +6 -0
- package/tsup.config.ts +2 -1
- package/dist/index.d.mts +0 -187
- package/dist/index.mjs +0 -1
- package/dist/index.mjs.map +0 -1
- package/src/types/content.ts +0 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,187 +1,1028 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @todo rename to PageMeta
|
|
5
|
+
*
|
|
6
|
+
* Represents metadata for a content page.
|
|
7
|
+
* Usually used as md/mdx frontmatter.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
interface Metadata<P = void> {
|
|
11
|
+
/** The main title of the content - by default visible in navigation and page title */
|
|
12
|
+
title: string;
|
|
13
|
+
/** Title to display in the sidebar navigation */
|
|
14
|
+
sidebarTitle?: string;
|
|
15
|
+
/** Disply description for SEO purposes */
|
|
16
|
+
description?: string;
|
|
17
|
+
/** Icon identifier for the navigation item */
|
|
18
|
+
icon?: string;
|
|
19
|
+
/** Layout type for the content display */
|
|
20
|
+
layout?: PageLayout;
|
|
21
|
+
/** Max depth for table of contents */
|
|
22
|
+
maxTocDepth?: number;
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*
|
|
26
|
+
* The type of component to render this content with
|
|
27
|
+
*/
|
|
28
|
+
component?: "docs" | "atlas" | "page";
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*
|
|
32
|
+
* Properties specific to the component type
|
|
33
|
+
*/
|
|
34
|
+
componentProps?: P;
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
*
|
|
38
|
+
* Group for sidebar navigation
|
|
39
|
+
*/
|
|
40
|
+
group?: string[];
|
|
41
|
+
/**
|
|
42
|
+
* Uniform for API Docs references
|
|
43
|
+
*/
|
|
44
|
+
uniform?: PageMetaUniform;
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
*
|
|
48
|
+
* used for graphql references
|
|
49
|
+
*/
|
|
50
|
+
graphql?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
*
|
|
54
|
+
* used for openapi references
|
|
55
|
+
*/
|
|
56
|
+
openapi?: string;
|
|
57
|
+
/**
|
|
58
|
+
* If true, hide from navigation
|
|
59
|
+
*/
|
|
60
|
+
hidden?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* @todo: !!! IN THE FUTURE COMPOSE API !!!
|
|
63
|
+
*
|
|
64
|
+
* Optional 'tocCard' for github references
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```
|
|
68
|
+
* tocCard: {
|
|
69
|
+
* link: "https://github.com/livesession/livesession-browser",
|
|
70
|
+
* title: "Checkout the code",
|
|
71
|
+
* description: "Check how to use the LiveSession Browser SDK",
|
|
72
|
+
* icon: "github"
|
|
73
|
+
* }
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
tocCard?: {
|
|
77
|
+
/** 'link' to the card */
|
|
78
|
+
link: string;
|
|
79
|
+
/** 'title' of the card */
|
|
5
80
|
title: string;
|
|
6
|
-
|
|
81
|
+
/** 'description' of the card */
|
|
82
|
+
description: string;
|
|
83
|
+
/** 'icon' of the card */
|
|
84
|
+
icon?: string;
|
|
7
85
|
};
|
|
8
|
-
group?: string[];
|
|
9
86
|
}
|
|
10
|
-
type
|
|
11
|
-
|
|
87
|
+
type PageMetaUniform = string | PageMetaUniformDetails;
|
|
88
|
+
/**
|
|
89
|
+
* Uniform details allows to specify more options than just the path, for example eager loading
|
|
90
|
+
*/
|
|
91
|
+
type PageMetaUniformDetails = {
|
|
92
|
+
/**
|
|
93
|
+
* Path to the uniform file / url
|
|
94
|
+
*/
|
|
95
|
+
path: string;
|
|
96
|
+
/**
|
|
97
|
+
* If true, the uniform will be eagerly loaded
|
|
98
|
+
*/
|
|
99
|
+
eager?: boolean;
|
|
100
|
+
};
|
|
101
|
+
type MetadataMap<P = void> = {
|
|
102
|
+
[page: string]: Metadata<P>;
|
|
103
|
+
};
|
|
104
|
+
type PageLayout = "wide" | "page" | "center";
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Interface representing all possible meta tags that can be used in HTML documents.
|
|
108
|
+
* This includes standard meta tags, Open Graph tags, Twitter cards, and various other
|
|
109
|
+
* specialized meta tags for different content types.
|
|
110
|
+
*
|
|
111
|
+
*/
|
|
112
|
+
interface MetaTags {
|
|
113
|
+
/** Standard meta tag for controlling search engine crawling and indexing
|
|
114
|
+
* @example "noindex"
|
|
115
|
+
*/
|
|
116
|
+
robots: string;
|
|
117
|
+
/** Character encoding for the document
|
|
118
|
+
* @example "UTF-8"
|
|
119
|
+
*/
|
|
120
|
+
charset: string;
|
|
121
|
+
/** Viewport settings for responsive design
|
|
122
|
+
* @example "width=device-width, initial-scale=1, maximum-scale=1"
|
|
123
|
+
*/
|
|
124
|
+
viewport: string;
|
|
125
|
+
/** Brief description of the page content
|
|
126
|
+
* @example "Your page description"
|
|
127
|
+
*/
|
|
128
|
+
description: string;
|
|
129
|
+
/** Keywords relevant to the page content
|
|
130
|
+
* @example "keyword, keyword2"
|
|
131
|
+
*/
|
|
132
|
+
keywords: string;
|
|
133
|
+
/** Author of the page content
|
|
134
|
+
* @example "Author Name"
|
|
135
|
+
*/
|
|
136
|
+
author: string;
|
|
137
|
+
/** Google-specific crawling instructions
|
|
138
|
+
* @example "index, follow"
|
|
139
|
+
*/
|
|
140
|
+
googlebot: string;
|
|
141
|
+
/** Google-specific settings
|
|
142
|
+
* @example "notranslate"
|
|
143
|
+
*/
|
|
144
|
+
google: string;
|
|
145
|
+
/** Google Search Console verification token
|
|
146
|
+
* @example "verification_token"
|
|
147
|
+
*/
|
|
148
|
+
"google-site-verification": string;
|
|
149
|
+
/** Software used to generate the page
|
|
150
|
+
* @example "xyd"
|
|
151
|
+
*/
|
|
152
|
+
generator: string;
|
|
153
|
+
/** Theme color for browser UI
|
|
154
|
+
* @example "#ffffff"
|
|
155
|
+
*/
|
|
156
|
+
"theme-color": string;
|
|
157
|
+
/** Color scheme preference
|
|
158
|
+
* @example "light"
|
|
159
|
+
*/
|
|
160
|
+
"color-scheme": string;
|
|
161
|
+
/** Format detection settings
|
|
162
|
+
* @example "telephone=no"
|
|
163
|
+
*/
|
|
164
|
+
"format-detection": string;
|
|
165
|
+
/** Referrer policy
|
|
166
|
+
* @example "origin"
|
|
167
|
+
*/
|
|
168
|
+
referrer: string;
|
|
169
|
+
/** Page refresh settings
|
|
170
|
+
* @example "0;url=https://example.com"
|
|
171
|
+
*/
|
|
172
|
+
refresh: string;
|
|
173
|
+
/** Content rating
|
|
174
|
+
* @example "general"
|
|
175
|
+
*/
|
|
176
|
+
rating: string;
|
|
177
|
+
/** Crawl frequency suggestion
|
|
178
|
+
* @example "7 days"
|
|
179
|
+
*/
|
|
180
|
+
"revisit-after": string;
|
|
181
|
+
/** Page language
|
|
182
|
+
* @example "en-US"
|
|
183
|
+
*/
|
|
184
|
+
language: string;
|
|
185
|
+
/** Copyright information
|
|
186
|
+
* @example "Copyright 2024"
|
|
187
|
+
*/
|
|
188
|
+
copyright: string;
|
|
189
|
+
/** Reply-to email address
|
|
190
|
+
* @example "contact@example.com"
|
|
191
|
+
*/
|
|
192
|
+
"reply-to": string;
|
|
193
|
+
/** Content distribution scope
|
|
194
|
+
* @example "global"
|
|
195
|
+
*/
|
|
196
|
+
distribution: string;
|
|
197
|
+
/** Content coverage area
|
|
198
|
+
* @example "Worldwide"
|
|
199
|
+
*/
|
|
200
|
+
coverage: string;
|
|
201
|
+
/** Content category
|
|
202
|
+
* @example "Technology"
|
|
203
|
+
*/
|
|
204
|
+
category: string;
|
|
205
|
+
/** Target audience
|
|
206
|
+
* @example "all"
|
|
207
|
+
*/
|
|
208
|
+
target: string;
|
|
209
|
+
/** Mobile device compatibility
|
|
210
|
+
* @example "true"
|
|
211
|
+
*/
|
|
212
|
+
HandheldFriendly: string;
|
|
213
|
+
/** Mobile optimization settings
|
|
214
|
+
* @example "width"
|
|
215
|
+
*/
|
|
216
|
+
MobileOptimized: string;
|
|
217
|
+
/** iOS web app capability
|
|
218
|
+
* @example "yes"
|
|
219
|
+
*/
|
|
220
|
+
"apple-mobile-web-app-capable": string;
|
|
221
|
+
/** iOS status bar style
|
|
222
|
+
* @example "black"
|
|
223
|
+
*/
|
|
224
|
+
"apple-mobile-web-app-status-bar-style": string;
|
|
225
|
+
/** iOS web app title
|
|
226
|
+
* @example "App Name"
|
|
227
|
+
*/
|
|
228
|
+
"apple-mobile-web-app-title": string;
|
|
229
|
+
/** Web application name
|
|
230
|
+
* @example "My App"
|
|
231
|
+
*/
|
|
232
|
+
"application-name": string;
|
|
233
|
+
/** Windows tile color
|
|
234
|
+
* @example "#2b5797"
|
|
235
|
+
*/
|
|
236
|
+
"msapplication-TileColor": string;
|
|
237
|
+
/** Windows tile image
|
|
238
|
+
* @example "/mstile-144x144.png"a
|
|
239
|
+
*/
|
|
240
|
+
"msapplication-TileImage": string;
|
|
241
|
+
/** Windows browser config
|
|
242
|
+
* @example "/browserconfig.xml"
|
|
243
|
+
*/
|
|
244
|
+
"msapplication-config": string;
|
|
245
|
+
/** Open Graph title
|
|
246
|
+
* @example "Page Title"
|
|
247
|
+
*/
|
|
248
|
+
"og:title": string;
|
|
249
|
+
/** Open Graph content type
|
|
250
|
+
* @example "website"
|
|
251
|
+
*/
|
|
252
|
+
"og:type": string;
|
|
253
|
+
/** Open Graph URL
|
|
254
|
+
* @example "https://example.com"
|
|
255
|
+
*/
|
|
256
|
+
"og:url": string;
|
|
257
|
+
/** Open Graph image
|
|
258
|
+
* @example "https://example.com/image.jpg"
|
|
259
|
+
*/
|
|
260
|
+
"og:image": string;
|
|
261
|
+
/** Open Graph description
|
|
262
|
+
* @example "A brief description for social media"
|
|
263
|
+
*/
|
|
264
|
+
"og:description": string;
|
|
265
|
+
/** Open Graph site name
|
|
266
|
+
* @example "Site Name"
|
|
267
|
+
*/
|
|
268
|
+
"og:site_name": string;
|
|
269
|
+
/** Open Graph locale
|
|
270
|
+
* @example "en_US"
|
|
271
|
+
*/
|
|
272
|
+
"og:locale": string;
|
|
273
|
+
/** Open Graph video
|
|
274
|
+
* @example "https://example.com/video.mp4"
|
|
275
|
+
*/
|
|
276
|
+
"og:video": string;
|
|
277
|
+
/** Open Graph audio
|
|
278
|
+
* @example "https://example.com/audio.mp3"
|
|
279
|
+
*/
|
|
280
|
+
"og:audio": string;
|
|
281
|
+
/** Twitter card type
|
|
282
|
+
* @example "summary"
|
|
283
|
+
*/
|
|
284
|
+
"twitter:card": string;
|
|
285
|
+
/** Twitter site handle
|
|
286
|
+
* @example "@username"
|
|
287
|
+
*/
|
|
288
|
+
"twitter:site": string;
|
|
289
|
+
/** Twitter creator handle
|
|
290
|
+
* @example "@author"
|
|
291
|
+
*/
|
|
292
|
+
"twitter:creator": string;
|
|
293
|
+
/** Twitter title
|
|
294
|
+
* @example "Page Title"
|
|
295
|
+
*/
|
|
296
|
+
"twitter:title": string;
|
|
297
|
+
/** Twitter description
|
|
298
|
+
* @example "A brief description for Twitter"
|
|
299
|
+
*/
|
|
300
|
+
"twitter:description": string;
|
|
301
|
+
/** Twitter image
|
|
302
|
+
* @example "https://example.com/image.jpg"
|
|
303
|
+
*/
|
|
304
|
+
"twitter:image": string;
|
|
305
|
+
/** Twitter image alt text
|
|
306
|
+
* @example "Image description"
|
|
307
|
+
*/
|
|
308
|
+
"twitter:image:alt": string;
|
|
309
|
+
/** Twitter player URL
|
|
310
|
+
* @example "https://example.com/player"
|
|
311
|
+
*/
|
|
312
|
+
"twitter:player": string;
|
|
313
|
+
/** Twitter player width
|
|
314
|
+
* @example "480"
|
|
315
|
+
*/
|
|
316
|
+
"twitter:player:width": string;
|
|
317
|
+
/** Twitter player height
|
|
318
|
+
* @example "480"
|
|
319
|
+
*/
|
|
320
|
+
"twitter:player:height": string;
|
|
321
|
+
/** Twitter iOS app name
|
|
322
|
+
* @example "App Name"
|
|
323
|
+
*/
|
|
324
|
+
"twitter:app:name:iphone": string;
|
|
325
|
+
/** Twitter iOS app ID
|
|
326
|
+
* @example "123456789"
|
|
327
|
+
*/
|
|
328
|
+
"twitter:app:id:iphone": string;
|
|
329
|
+
/** Twitter iOS app URL
|
|
330
|
+
* @example "app://"
|
|
331
|
+
*/
|
|
332
|
+
"twitter:app:url:iphone": string;
|
|
333
|
+
/** Article publication time
|
|
334
|
+
* @example "2024-03-20T12:00:00Z"
|
|
335
|
+
*/
|
|
336
|
+
"article:published_time": string;
|
|
337
|
+
/** Article modification time
|
|
338
|
+
* @example "2024-03-21T15:30:00Z"
|
|
339
|
+
*/
|
|
340
|
+
"article:modified_time": string;
|
|
341
|
+
/** Article expiration time
|
|
342
|
+
* @example "2024-04-20T12:00:00Z"
|
|
343
|
+
*/
|
|
344
|
+
"article:expiration_time": string;
|
|
345
|
+
/** Article author
|
|
346
|
+
* @example "John Doe"
|
|
347
|
+
*/
|
|
348
|
+
"article:author": string;
|
|
349
|
+
/** Article section
|
|
350
|
+
* @example "Technology"
|
|
351
|
+
*/
|
|
352
|
+
"article:section": string;
|
|
353
|
+
/** Article tags
|
|
354
|
+
* @example "Web Development"
|
|
355
|
+
*/
|
|
356
|
+
"article:tag": string;
|
|
357
|
+
/** Book author
|
|
358
|
+
* @example "Jane Smith"
|
|
359
|
+
*/
|
|
360
|
+
"book:author": string;
|
|
361
|
+
/** Book ISBN
|
|
362
|
+
* @example "978-3-16-148410-0"
|
|
363
|
+
*/
|
|
364
|
+
"book:isbn": string;
|
|
365
|
+
/** Book release date
|
|
366
|
+
* @example "2024-01-01"
|
|
367
|
+
*/
|
|
368
|
+
"book:release_date": string;
|
|
369
|
+
/** Book tags
|
|
370
|
+
* @example "Fiction"
|
|
371
|
+
*/
|
|
372
|
+
"book:tag": string;
|
|
373
|
+
/** Profile first name
|
|
374
|
+
* @example "John"
|
|
375
|
+
*/
|
|
376
|
+
"profile:first_name": string;
|
|
377
|
+
/** Profile last name
|
|
378
|
+
* @example "Doe"
|
|
379
|
+
*/
|
|
380
|
+
"profile:last_name": string;
|
|
381
|
+
/** Profile username
|
|
382
|
+
* @example "johndoe"
|
|
383
|
+
*/
|
|
384
|
+
"profile:username": string;
|
|
385
|
+
/** Profile gender
|
|
386
|
+
* @example "male"
|
|
387
|
+
*/
|
|
388
|
+
"profile:gender": string;
|
|
389
|
+
/** Music duration in seconds
|
|
390
|
+
* @example "180"
|
|
391
|
+
*/
|
|
392
|
+
"music:duration": string;
|
|
393
|
+
/** Music album name
|
|
394
|
+
* @example "Album Name"
|
|
395
|
+
*/
|
|
396
|
+
"music:album": string;
|
|
397
|
+
/** Music album disc number
|
|
398
|
+
* @example "1"
|
|
399
|
+
*/
|
|
400
|
+
"music:album:disc": string;
|
|
401
|
+
/** Music album track number
|
|
402
|
+
* @example "1"
|
|
403
|
+
*/
|
|
404
|
+
"music:album:track": string;
|
|
405
|
+
/** Music musician/artist
|
|
406
|
+
* @example "Artist Name"
|
|
407
|
+
*/
|
|
408
|
+
"music:musician": string;
|
|
409
|
+
/** Music song name
|
|
410
|
+
* @example "Song Name"
|
|
411
|
+
*/
|
|
412
|
+
"music:song": string;
|
|
413
|
+
/** Music song disc number
|
|
414
|
+
* @example "1"
|
|
415
|
+
*/
|
|
416
|
+
"music:song:disc": string;
|
|
417
|
+
/** Music song track number
|
|
418
|
+
* @example "1"
|
|
419
|
+
*/
|
|
420
|
+
"music:song:track": string;
|
|
421
|
+
/** Video actor name
|
|
422
|
+
* @example "Actor Name"
|
|
423
|
+
*/
|
|
424
|
+
"video:actor": string;
|
|
425
|
+
/** Video actor role
|
|
426
|
+
* @example "Character Name"
|
|
427
|
+
*/
|
|
428
|
+
"video:actor:role": string;
|
|
429
|
+
/** Video director
|
|
430
|
+
* @example "Director Name"
|
|
431
|
+
*/
|
|
432
|
+
"video:director": string;
|
|
433
|
+
/** Video writer
|
|
434
|
+
* @example "Writer Name"
|
|
435
|
+
*/
|
|
436
|
+
"video:writer": string;
|
|
437
|
+
/** Video duration in seconds
|
|
438
|
+
* @example "120"
|
|
439
|
+
*/
|
|
440
|
+
"video:duration": string;
|
|
441
|
+
/** Video release date
|
|
442
|
+
* @example "2024-01-01"
|
|
443
|
+
*/
|
|
444
|
+
"video:release_date": string;
|
|
445
|
+
/** Video tags
|
|
446
|
+
* @example "Action"
|
|
447
|
+
*/
|
|
448
|
+
"video:tag": string;
|
|
449
|
+
/** Video series name
|
|
450
|
+
* @example "Series Name"
|
|
451
|
+
*/
|
|
452
|
+
"video:series": string;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
type RawTheme = {
|
|
456
|
+
name?: string;
|
|
457
|
+
type?: string;
|
|
458
|
+
tokenColors?: ThemeSetting[];
|
|
459
|
+
colors?: {
|
|
460
|
+
[key: string]: string;
|
|
461
|
+
};
|
|
462
|
+
[key: string]: any;
|
|
463
|
+
};
|
|
464
|
+
type ThemeSetting = {
|
|
465
|
+
name?: string;
|
|
466
|
+
scope?: string | string[];
|
|
467
|
+
settings: {
|
|
468
|
+
fontStyle?: string;
|
|
469
|
+
foreground?: string;
|
|
470
|
+
background?: string;
|
|
471
|
+
};
|
|
12
472
|
};
|
|
473
|
+
declare const THEME_NAMES: readonly ["dark-plus", "dracula-soft", "dracula", "github-dark", "github-dark-dimmed", "github-from-css", "github-light", "light-plus", "material-darker", "material-default", "material-from-css", "material-lighter", "material-ocean", "material-palenight", "min-dark", "min-light", "monokai", "nord", "one-dark-pro", "poimandres", "slack-dark", "slack-ochin", "solarized-dark", "solarized-light"];
|
|
474
|
+
type NamesTuple$1 = typeof THEME_NAMES;
|
|
475
|
+
type StringTheme = NamesTuple$1[number];
|
|
476
|
+
type Theme$1 = StringTheme | RawTheme;
|
|
13
477
|
|
|
478
|
+
/**
|
|
479
|
+
* Main settings interface for the application
|
|
480
|
+
*/
|
|
14
481
|
interface Settings {
|
|
15
|
-
|
|
16
|
-
|
|
482
|
+
/** Theme configuration for the application */
|
|
483
|
+
theme?: Theme;
|
|
484
|
+
/** Navigation configuration */
|
|
485
|
+
navigation?: Navigation;
|
|
486
|
+
/** API configuration */
|
|
17
487
|
api?: API;
|
|
488
|
+
/** Integrations configuration */
|
|
18
489
|
integrations?: Integrations;
|
|
490
|
+
/** Plugins configuration */
|
|
491
|
+
plugins?: Plugins;
|
|
492
|
+
/**
|
|
493
|
+
* @internal
|
|
494
|
+
* @unsafe
|
|
495
|
+
*
|
|
496
|
+
* Redirects configuration
|
|
497
|
+
*/
|
|
19
498
|
redirects?: Redirects[];
|
|
499
|
+
/**
|
|
500
|
+
* @unsafe
|
|
501
|
+
* SEO configuration
|
|
502
|
+
*/
|
|
20
503
|
seo?: SEO;
|
|
504
|
+
/** Engine configuration */
|
|
505
|
+
engine?: Engine;
|
|
21
506
|
}
|
|
22
|
-
|
|
23
|
-
|
|
507
|
+
/**
|
|
508
|
+
* Theme configuration that changes the look and feel of the project
|
|
509
|
+
*/
|
|
510
|
+
interface Theme {
|
|
511
|
+
/**
|
|
512
|
+
* A preset theme configuration that changes the look and feel of the project.
|
|
513
|
+
* A theme is a set of default styling configurations.
|
|
514
|
+
*
|
|
515
|
+
* Example built-in themes: `cosmo`, `gusto`, `poetry`, `picasso`
|
|
516
|
+
*/
|
|
517
|
+
readonly name: ThemePresetName | (string & {});
|
|
518
|
+
/**
|
|
519
|
+
* The default color scheme to use.
|
|
520
|
+
*/
|
|
521
|
+
defaultColorScheme?: "light" | "dark" | "os";
|
|
522
|
+
/**
|
|
523
|
+
* Path to logo image or object with path to "light" and "dark" mode logo images, and where the logo links to.
|
|
524
|
+
* SVG format is recommended as it does not pixelate and the file size is generally smaller.
|
|
525
|
+
*/
|
|
24
526
|
logo?: string | Logo | React.JSX.Element;
|
|
527
|
+
/**
|
|
528
|
+
* Coder configuration for the theme, including options like syntax highlighting.
|
|
529
|
+
*/
|
|
530
|
+
coder?: Coder;
|
|
531
|
+
/**
|
|
532
|
+
* Banner configuration for the theme.
|
|
533
|
+
*/
|
|
534
|
+
banner?: Banner;
|
|
535
|
+
/** Path to the favicon image. For example: /path/to/favicon.svg */
|
|
25
536
|
favicon?: string;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
topbar?: Topbar;
|
|
38
|
-
search?: SearchType;
|
|
39
|
-
rounded?: Rounded;
|
|
537
|
+
/** The defult level of the table of contents. */
|
|
538
|
+
maxTocDepth?: number;
|
|
539
|
+
/** Head configuration */
|
|
540
|
+
head?: HeadConfig[];
|
|
541
|
+
/** The iconify library */
|
|
542
|
+
icons?: Icons;
|
|
543
|
+
/**
|
|
544
|
+
* Custom scripts to be added to the head of the every page.
|
|
545
|
+
* Paths are relative to the root of the project or absolute.
|
|
546
|
+
*/
|
|
547
|
+
scripts?: Script[];
|
|
40
548
|
}
|
|
549
|
+
/**
|
|
550
|
+
* Coder configuration for the theme, including options like syntax highlighting.
|
|
551
|
+
*/
|
|
552
|
+
interface Coder {
|
|
553
|
+
/**
|
|
554
|
+
* If `true` then code blocks will have line numbers.
|
|
555
|
+
*/
|
|
556
|
+
lines?: boolean;
|
|
557
|
+
/**
|
|
558
|
+
* If `true` then code blocks will have a scrollbar.
|
|
559
|
+
*/
|
|
560
|
+
scroll?: boolean;
|
|
561
|
+
/**
|
|
562
|
+
* Syntax highlighting configuration.
|
|
563
|
+
*/
|
|
564
|
+
syntaxHighlight?: Theme$1;
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* Configuration type for head elements that can be added to the HTML head.
|
|
568
|
+
* Format: [tagName, attributes]
|
|
569
|
+
*
|
|
570
|
+
* @example: ['script', { src: 'https://example.com/script.js', defer: true }]
|
|
571
|
+
*/
|
|
572
|
+
type HeadConfig = [string, Record<string, string | boolean>];
|
|
573
|
+
type Script = string;
|
|
574
|
+
/**
|
|
575
|
+
* Logo configuration interface
|
|
576
|
+
*/
|
|
41
577
|
interface Logo {
|
|
578
|
+
/** Path to the logo in light mode. For example: `/path/to/logo.svg` */
|
|
42
579
|
light?: string;
|
|
580
|
+
/** Path to the logo in dark mode. For example: `/path/to/logo.svg` */
|
|
43
581
|
dark?: string;
|
|
582
|
+
/** Where clicking on the logo links you to */
|
|
44
583
|
href?: string;
|
|
45
584
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
isHidden?: boolean;
|
|
585
|
+
/**
|
|
586
|
+
* Banner configuration interface
|
|
587
|
+
*/
|
|
588
|
+
interface Banner {
|
|
589
|
+
/**
|
|
590
|
+
* Banner content.
|
|
591
|
+
*/
|
|
592
|
+
content: string | React.JSX.Element;
|
|
593
|
+
/**
|
|
594
|
+
* Banner label.
|
|
595
|
+
*/
|
|
596
|
+
label?: string;
|
|
597
|
+
/**
|
|
598
|
+
* Banner kind.
|
|
599
|
+
*/
|
|
600
|
+
kind?: "secondary";
|
|
601
|
+
/**
|
|
602
|
+
* Banner icon.
|
|
603
|
+
*/
|
|
604
|
+
icon?: string;
|
|
67
605
|
}
|
|
68
|
-
interface
|
|
69
|
-
|
|
606
|
+
interface IconLibrary {
|
|
607
|
+
/** The iconify library name */
|
|
608
|
+
name: string;
|
|
609
|
+
/** The iconify library version */
|
|
610
|
+
version?: string;
|
|
611
|
+
/** The default iconify icon name */
|
|
612
|
+
default?: boolean;
|
|
613
|
+
/** Merge icons from the library into the default iconify library */
|
|
614
|
+
noprefix?: boolean;
|
|
70
615
|
}
|
|
71
|
-
interface
|
|
72
|
-
|
|
616
|
+
interface Icons {
|
|
617
|
+
/** The iconify library */
|
|
618
|
+
library?: string | string[] | IconLibrary | IconLibrary[];
|
|
73
619
|
}
|
|
74
|
-
|
|
75
|
-
type
|
|
620
|
+
/** Available theme preset names */
|
|
621
|
+
type ThemePresetName = "poetry" | "cosmo" | "opener" | "picasso";
|
|
622
|
+
/** Search bar location options */
|
|
76
623
|
type SearchType = "side" | "top";
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
624
|
+
/**
|
|
625
|
+
* Navigation configuration interface
|
|
626
|
+
*/
|
|
627
|
+
interface Navigation {
|
|
628
|
+
/** Definition of sidebar - an array of groups with all the pages within that group */
|
|
629
|
+
sidebar: (SidebarRoute | Sidebar | string)[];
|
|
630
|
+
/** Array of headers */
|
|
80
631
|
header?: Header[];
|
|
81
|
-
|
|
82
|
-
|
|
632
|
+
/** Array of segments */
|
|
633
|
+
segments?: Segment[];
|
|
634
|
+
/**
|
|
635
|
+
* Array of version names. Only use this if you want to show different versions of docs
|
|
636
|
+
* with a dropdown in the navigation bar.
|
|
637
|
+
*/
|
|
638
|
+
/** Anchors, includes the icon, name, and url */
|
|
83
639
|
anchors?: AnchorRoot;
|
|
84
|
-
footerSocials?: FooterSocials;
|
|
85
|
-
feedback?: Feedback;
|
|
86
|
-
search?: Search;
|
|
87
640
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
641
|
+
/**
|
|
642
|
+
* Sidebar multi-group configuration
|
|
643
|
+
*/
|
|
644
|
+
interface SidebarRoute {
|
|
645
|
+
/** Route for this sidebar group */
|
|
646
|
+
route: string;
|
|
647
|
+
/** Sidebar pages within this group */
|
|
648
|
+
pages: Sidebar[];
|
|
91
649
|
}
|
|
650
|
+
/**
|
|
651
|
+
* Sidebar configuration
|
|
652
|
+
*/
|
|
92
653
|
interface Sidebar {
|
|
654
|
+
/** The name of the group */
|
|
93
655
|
group?: string;
|
|
94
|
-
|
|
656
|
+
/**
|
|
657
|
+
* The relative paths to the markdown files that will serve as pages.
|
|
658
|
+
* Note: groups are recursive, so to add a sub-folder add another group object in the page array.
|
|
659
|
+
*/
|
|
660
|
+
pages?: PageURL[];
|
|
661
|
+
/**
|
|
662
|
+
* The icon of the group.
|
|
663
|
+
*/
|
|
95
664
|
icon?: string;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
name: string;
|
|
101
|
-
items: Header[];
|
|
665
|
+
/**
|
|
666
|
+
* The sort order of the group.
|
|
667
|
+
*/
|
|
668
|
+
sort?: number;
|
|
102
669
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
670
|
+
/**
|
|
671
|
+
* Page URL type
|
|
672
|
+
*/
|
|
673
|
+
type PageURL = string | VirtualPage | Sidebar;
|
|
674
|
+
/**
|
|
675
|
+
* @internal
|
|
676
|
+
*
|
|
677
|
+
* Virtual page type
|
|
678
|
+
*
|
|
679
|
+
* Virtual pages are composition of pages, needed for templating e.g in uniform
|
|
680
|
+
*
|
|
681
|
+
* Example:
|
|
682
|
+
*
|
|
683
|
+
* {
|
|
684
|
+
* pages: [0
|
|
685
|
+
* ".xyd/.cache/.content/docs/rest/todo:docs/rest/todo",
|
|
686
|
+
* ]
|
|
687
|
+
* }
|
|
688
|
+
*
|
|
689
|
+
* above will be rendered as docs/rest/todo.md using composition from xyd's `.content`
|
|
690
|
+
*/
|
|
691
|
+
type VirtualPage = string | {
|
|
692
|
+
/** The virtual page to use for the page */
|
|
693
|
+
virtual: string;
|
|
694
|
+
/** The page to use for the page */
|
|
695
|
+
page: string;
|
|
696
|
+
/** The template to use for the page */
|
|
697
|
+
templates?: string | string[];
|
|
698
|
+
};
|
|
699
|
+
/**
|
|
700
|
+
* Segment configuration
|
|
701
|
+
*/
|
|
702
|
+
interface Segment {
|
|
703
|
+
/** Route for this segment */
|
|
704
|
+
route: string;
|
|
705
|
+
/** Title of this segment */
|
|
706
|
+
title: string;
|
|
707
|
+
/** Items within this segment */
|
|
708
|
+
pages: SegmentPage[];
|
|
107
709
|
}
|
|
108
|
-
interface
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
name?: string;
|
|
112
|
-
style?: "pill" | "roundedRectangle";
|
|
113
|
-
arrow?: boolean;
|
|
710
|
+
interface SegmentPage {
|
|
711
|
+
page: string;
|
|
712
|
+
title: string;
|
|
114
713
|
}
|
|
714
|
+
/**
|
|
715
|
+
* Header configuration
|
|
716
|
+
*/
|
|
717
|
+
type Header = {
|
|
718
|
+
/** The name of the button */
|
|
719
|
+
title?: string;
|
|
720
|
+
/** The url once you click on the button */
|
|
721
|
+
page?: string;
|
|
722
|
+
/** Float the header to the right */
|
|
723
|
+
float?: "right";
|
|
724
|
+
};
|
|
725
|
+
/**
|
|
726
|
+
* Anchor configuration
|
|
727
|
+
*/
|
|
115
728
|
interface Anchor {
|
|
116
|
-
icon
|
|
729
|
+
/** The iconify icon name */
|
|
730
|
+
icon?: string;
|
|
731
|
+
/** The name of the anchor label */
|
|
117
732
|
name?: string;
|
|
733
|
+
/**
|
|
734
|
+
* The start of the URL that marks what pages go in the anchor.
|
|
735
|
+
* Generally, this is the name of the folder you put your pages in.
|
|
736
|
+
*/
|
|
118
737
|
url?: string;
|
|
119
738
|
}
|
|
739
|
+
/**
|
|
740
|
+
* Anchor root configuration
|
|
741
|
+
*/
|
|
120
742
|
interface AnchorRoot {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
interface FooterSocials {
|
|
124
|
-
[key: string]: string;
|
|
125
|
-
property: string;
|
|
126
|
-
}
|
|
127
|
-
interface Feedback {
|
|
128
|
-
thumbsRating?: boolean;
|
|
129
|
-
suggestEdit?: boolean;
|
|
130
|
-
raiseIssue?: boolean;
|
|
743
|
+
/** Bottom anchors */
|
|
744
|
+
bottom?: Anchor[];
|
|
131
745
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
type APIFile = string | string[] | {
|
|
136
|
-
[id: string]: string;
|
|
137
|
-
};
|
|
746
|
+
/**
|
|
747
|
+
* API configuration interface
|
|
748
|
+
*/
|
|
138
749
|
interface API {
|
|
139
|
-
|
|
750
|
+
/**
|
|
751
|
+
* OpenAPI configuration
|
|
752
|
+
*/
|
|
140
753
|
openapi?: APIFile;
|
|
754
|
+
/**
|
|
755
|
+
* GraphQL configuration
|
|
756
|
+
*/
|
|
141
757
|
graphql?: APIFile;
|
|
758
|
+
/**
|
|
759
|
+
* Sources configuration
|
|
760
|
+
*/
|
|
142
761
|
sources?: APIFile;
|
|
143
|
-
match?: {
|
|
144
|
-
graphql?: string;
|
|
145
|
-
openapi?: string;
|
|
146
|
-
};
|
|
147
762
|
}
|
|
763
|
+
/**
|
|
764
|
+
* API file configuration. Can be a path, an array of paths, a map of paths, or an advanced configuration
|
|
765
|
+
*/
|
|
766
|
+
type APIFile = string | string[] | APIFileMap | APIFileAdvanced;
|
|
767
|
+
/**
|
|
768
|
+
* API file map type
|
|
769
|
+
*/
|
|
770
|
+
type APIFileMap = {
|
|
771
|
+
[name: string]: string | APIFileAdvanced;
|
|
772
|
+
};
|
|
773
|
+
/**
|
|
774
|
+
* API file advanced type
|
|
775
|
+
*/
|
|
776
|
+
type APIFileAdvanced = {
|
|
777
|
+
/** API information configuration */
|
|
778
|
+
info?: APIInfo;
|
|
779
|
+
/** Route configuration */
|
|
780
|
+
route: string;
|
|
781
|
+
};
|
|
782
|
+
/**
|
|
783
|
+
* API file type - can be a string, array of strings, or a map of strings
|
|
784
|
+
*/
|
|
785
|
+
/**
|
|
786
|
+
* API information configuration
|
|
787
|
+
*/
|
|
148
788
|
interface APIInfo {
|
|
789
|
+
/**
|
|
790
|
+
* The base url for all API endpoints. If baseUrl is an array, it will enable
|
|
791
|
+
* for multiple base url options that the user can toggle.
|
|
792
|
+
*/
|
|
149
793
|
baseUrl?: string;
|
|
794
|
+
/** Authentication information */
|
|
150
795
|
auth?: APIAuth;
|
|
796
|
+
/**
|
|
797
|
+
* The name of the authentication parameter used in the API playground.
|
|
798
|
+
* If method is basic, the format should be [usernameName]:[passwordName]
|
|
799
|
+
*/
|
|
151
800
|
name?: string;
|
|
801
|
+
/**
|
|
802
|
+
* The default value that's designed to be a prefisx for the authentication input field.
|
|
803
|
+
* E.g. If an inputPrefix of AuthKey would inherit the default input result of the authentication field as AuthKey.
|
|
804
|
+
*/
|
|
152
805
|
inputPrefix?: string;
|
|
806
|
+
/** Configurations for the API playground */
|
|
153
807
|
playground?: APIPlayground;
|
|
808
|
+
/** Request configuration */
|
|
154
809
|
request?: APIInfoRequest;
|
|
155
|
-
paramFields?: ApiParamFields;
|
|
156
810
|
}
|
|
811
|
+
/**
|
|
812
|
+
* API authentication configuration
|
|
813
|
+
*/
|
|
157
814
|
interface APIAuth {
|
|
815
|
+
/** The authentication strategy used for all API endpoints */
|
|
158
816
|
method: "bearer" | "basic" | "key";
|
|
159
817
|
}
|
|
818
|
+
/**
|
|
819
|
+
* API playground configuration
|
|
820
|
+
*/
|
|
160
821
|
interface APIPlayground {
|
|
822
|
+
/** Playground display mode */
|
|
161
823
|
mode?: "show" | "simple" | "hide";
|
|
162
824
|
}
|
|
825
|
+
/**
|
|
826
|
+
* API request configuration
|
|
827
|
+
*/
|
|
163
828
|
interface APIInfoRequest {
|
|
829
|
+
/** Configurations for the auto-generated API request examples */
|
|
164
830
|
example?: {
|
|
831
|
+
/**
|
|
832
|
+
* An array of strings that determine the order of the languages of the auto-generated request examples.
|
|
833
|
+
* You can either define custom languages utilizing x-codeSamples or use our default languages which include
|
|
834
|
+
* bash, python, javascript, php, go, java
|
|
835
|
+
*/
|
|
165
836
|
languages?: string[];
|
|
166
837
|
};
|
|
167
838
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
839
|
+
/**
|
|
840
|
+
* Integrations configuration
|
|
841
|
+
*/
|
|
171
842
|
interface Integrations {
|
|
172
|
-
|
|
843
|
+
/**
|
|
844
|
+
* Configurations to add third-party analytics integrations.
|
|
845
|
+
* See full list of supported analytics here.
|
|
846
|
+
*/
|
|
847
|
+
analytics?: IntegrationAnalytics;
|
|
848
|
+
/**
|
|
849
|
+
* Configurations to add third-party search integrations.
|
|
850
|
+
* See full list of supported search here.
|
|
851
|
+
*/
|
|
852
|
+
search?: IntegrationSearch;
|
|
853
|
+
apps?: IntegrationApps;
|
|
173
854
|
}
|
|
174
|
-
|
|
175
|
-
|
|
855
|
+
/**
|
|
856
|
+
* Analytics configuration
|
|
857
|
+
*/
|
|
858
|
+
interface IntegrationAnalytics {
|
|
859
|
+
/** Livesession analytics configuration */
|
|
860
|
+
livesession?: {
|
|
861
|
+
/** Livesession's TrackID */
|
|
176
862
|
trackId: string;
|
|
177
863
|
};
|
|
178
864
|
}
|
|
865
|
+
/**
|
|
866
|
+
* Search configuration
|
|
867
|
+
*/
|
|
868
|
+
interface IntegrationSearch {
|
|
869
|
+
/** Algolia search configuration */
|
|
870
|
+
algolia?: {
|
|
871
|
+
/** Algolia application ID */
|
|
872
|
+
appId: string;
|
|
873
|
+
/** Algolia API key */
|
|
874
|
+
apiKey: string;
|
|
875
|
+
};
|
|
876
|
+
orama?: {
|
|
877
|
+
/** Orama endpoint */
|
|
878
|
+
endpoint: string;
|
|
879
|
+
/** Orama API key */
|
|
880
|
+
apiKey: string;
|
|
881
|
+
/** Orama suggestions */
|
|
882
|
+
suggestions?: string[];
|
|
883
|
+
} | boolean;
|
|
884
|
+
}
|
|
885
|
+
interface IntegrationApps {
|
|
886
|
+
/**
|
|
887
|
+
* Github star app configuration.
|
|
888
|
+
* List of all [options](https://github.com/buttons/react-github-btn).
|
|
889
|
+
*/
|
|
890
|
+
githubStar?: IntegrationAppGithubStar;
|
|
891
|
+
}
|
|
892
|
+
interface IntegrationAppGithubStar {
|
|
893
|
+
/**
|
|
894
|
+
* The title of the Github button
|
|
895
|
+
*/
|
|
896
|
+
title: string;
|
|
897
|
+
/**
|
|
898
|
+
* The label of the Github Button
|
|
899
|
+
*/
|
|
900
|
+
label?: string;
|
|
901
|
+
/**
|
|
902
|
+
* The href of the Github project
|
|
903
|
+
*/
|
|
904
|
+
href: string;
|
|
905
|
+
/**
|
|
906
|
+
* The data-show-count of the Github project
|
|
907
|
+
*/
|
|
908
|
+
dataShowCount?: boolean;
|
|
909
|
+
/**
|
|
910
|
+
* The data-icon of the Github button
|
|
911
|
+
*/
|
|
912
|
+
dataIcon?: string;
|
|
913
|
+
/**
|
|
914
|
+
* The data-size of the Github button
|
|
915
|
+
*/
|
|
916
|
+
dataSize?: string;
|
|
917
|
+
/**
|
|
918
|
+
* The aria-label of the Github button
|
|
919
|
+
*/
|
|
920
|
+
ariaLabel?: string;
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* Plugin configuration
|
|
924
|
+
*
|
|
925
|
+
* @example
|
|
926
|
+
* 1)
|
|
927
|
+
* {
|
|
928
|
+
* plugins: [
|
|
929
|
+
* "livesession",
|
|
930
|
+
* ]
|
|
931
|
+
* }
|
|
932
|
+
*
|
|
933
|
+
* or 2)
|
|
934
|
+
* {
|
|
935
|
+
* plugins: [
|
|
936
|
+
* [
|
|
937
|
+
* "livesession",
|
|
938
|
+
* "accountID.websiteID",
|
|
939
|
+
* {
|
|
940
|
+
* keystrokes: true
|
|
941
|
+
* }
|
|
942
|
+
* ]
|
|
943
|
+
* ]
|
|
944
|
+
* }
|
|
945
|
+
*
|
|
946
|
+
* @example [audience:dev]
|
|
947
|
+
* You can also use the type to define the plugin config in your code:
|
|
948
|
+
*
|
|
949
|
+
* const livesessionPlugin: PluginConfig<"livesession", [string, { keystrokes: boolean }]> = [
|
|
950
|
+
* "livesession",
|
|
951
|
+
* "accountID.websiteID",
|
|
952
|
+
* {
|
|
953
|
+
* keystrokes: true
|
|
954
|
+
* }
|
|
955
|
+
* ]
|
|
956
|
+
*/
|
|
957
|
+
type Plugins = (string | PluginConfig)[];
|
|
958
|
+
type PluginConfig<PluginName extends string = string, PluginArgs extends unknown[] = unknown[]> = [PluginName, ...PluginArgs];
|
|
959
|
+
/**
|
|
960
|
+
* Redirects configuration
|
|
961
|
+
*/
|
|
179
962
|
interface Redirects {
|
|
963
|
+
/** Source path to redirect from */
|
|
180
964
|
source: string;
|
|
965
|
+
/** Destination path to redirect to */
|
|
181
966
|
destination: string;
|
|
182
967
|
}
|
|
968
|
+
/**
|
|
969
|
+
* SEO configuration
|
|
970
|
+
*/
|
|
183
971
|
interface SEO {
|
|
184
|
-
|
|
972
|
+
/**
|
|
973
|
+
* Domain name
|
|
974
|
+
*/
|
|
975
|
+
domain?: string;
|
|
976
|
+
/**
|
|
977
|
+
* Meta tags
|
|
978
|
+
*/
|
|
979
|
+
metatags?: {
|
|
980
|
+
[tag: string]: string;
|
|
981
|
+
};
|
|
185
982
|
}
|
|
983
|
+
/**
|
|
984
|
+
* Config configuration
|
|
985
|
+
*/
|
|
986
|
+
interface Engine {
|
|
987
|
+
/**
|
|
988
|
+
* Path aliases for imports. Avoid long relative paths by creating shortcuts.
|
|
989
|
+
*
|
|
990
|
+
* @example
|
|
991
|
+
* ```json
|
|
992
|
+
* {
|
|
993
|
+
* "paths": {
|
|
994
|
+
* "@my-package/*": ["../my-package/src/*"],
|
|
995
|
+
* "@livesession-go/*": ["https://github.com/livesession/livesession-go/*"]
|
|
996
|
+
* }
|
|
997
|
+
* }
|
|
998
|
+
* ```
|
|
999
|
+
*
|
|
1000
|
+
* Usage:
|
|
1001
|
+
* ```typescript
|
|
1002
|
+
* // Instead of
|
|
1003
|
+
* @importCode("../../../my-package/src/components/Badge.tsx")
|
|
1004
|
+
*
|
|
1005
|
+
* // Use
|
|
1006
|
+
* @importCode("@my-package/src/components/Badge.tsx")
|
|
1007
|
+
* ```
|
|
1008
|
+
*/
|
|
1009
|
+
paths?: EnginePaths;
|
|
1010
|
+
/**
|
|
1011
|
+
* @unsafe
|
|
1012
|
+
*
|
|
1013
|
+
* Uniform configuration
|
|
1014
|
+
*
|
|
1015
|
+
*/
|
|
1016
|
+
uniform?: EngineUniform;
|
|
1017
|
+
}
|
|
1018
|
+
type EnginePaths = {
|
|
1019
|
+
[key: string]: string[];
|
|
1020
|
+
};
|
|
1021
|
+
type EngineUniform = {
|
|
1022
|
+
/**
|
|
1023
|
+
* If `true` then virtual pages will not created and generated content will be stored on disk
|
|
1024
|
+
*/
|
|
1025
|
+
store?: boolean;
|
|
1026
|
+
};
|
|
186
1027
|
|
|
187
|
-
export type { API, APIAuth, APIFile, APIInfo, APIInfoRequest, APIPlayground,
|
|
1028
|
+
export type { API, APIAuth, APIFile, APIFileAdvanced, APIFileMap, APIInfo, APIInfoRequest, APIPlayground, Anchor, AnchorRoot, Banner, Coder, Engine, EnginePaths, EngineUniform, HeadConfig, Header, IconLibrary, Icons, IntegrationAnalytics, IntegrationAppGithubStar, IntegrationApps, IntegrationSearch, Integrations, Logo, MetaTags, Metadata, MetadataMap, Navigation, PageLayout, PageMetaUniform, PageMetaUniformDetails, PageURL, PluginConfig, Plugins, Redirects, SEO, Script, SearchType, Segment, SegmentPage, Settings, Sidebar, SidebarRoute, Theme, ThemePresetName, VirtualPage };
|