@mintlify/prebuild 1.0.404 → 1.0.406
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/prebuild/categorizeFilePaths.d.ts +2 -0
- package/dist/prebuild/categorizeFilePaths.js +21 -8
- package/dist/prebuild/index.js +11 -2
- package/dist/prebuild/update/ConfigUpdater.d.ts +35 -5
- package/dist/prebuild/update/docsConfig/generateOpenApiDivisions.d.ts +1 -9
- package/dist/prebuild/update/docsConfig/generateOpenApiDivisions.js +1 -127
- package/dist/prebuild/update/docsConfig/generateOpenApiFromDocsConfig.d.ts +10 -0
- package/dist/prebuild/update/docsConfig/generateOpenApiFromDocsConfig.js +127 -0
- package/dist/prebuild/update/docsConfig/index.d.ts +4 -2
- package/dist/prebuild/update/docsConfig/index.js +3 -2
- package/dist/prebuild/update/index.d.ts +47 -6
- package/dist/prebuild/update/index.js +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +6 -6
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { AsyncAPIFile } from '@mintlify/common/asyncapi';
|
|
1
2
|
import { OpenApiFile, DecoratedNavigationPage } from '@mintlify/models';
|
|
2
3
|
import { DocsConfig } from '@mintlify/validation';
|
|
3
|
-
export declare function updateDocsConfigFile(contentDirectoryPath: string, openApiFiles: OpenApiFile[], docsConfig?: DocsConfig): Promise<{
|
|
4
|
+
export declare function updateDocsConfigFile(contentDirectoryPath: string, openApiFiles: OpenApiFile[], _asyncApiFiles: AsyncAPIFile[], docsConfig?: DocsConfig): Promise<{
|
|
4
5
|
docsConfig: DocsConfig;
|
|
5
6
|
pagesAcc: Record<string, DecoratedNavigationPage>;
|
|
6
7
|
newOpenApiFiles: OpenApiFile[];
|
|
7
8
|
}>;
|
|
8
|
-
export { generateOpenApiDivisions
|
|
9
|
+
export { generateOpenApiDivisions } from './generateOpenApiDivisions.js';
|
|
10
|
+
export { generateOpenApiFromDocsConfig } from './generateOpenApiFromDocsConfig.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getConfigPath } from '../../../utils.js';
|
|
2
2
|
import { DocsConfigUpdater } from '../ConfigUpdater.js';
|
|
3
3
|
import { generateOpenApiDivisions } from './generateOpenApiDivisions.js';
|
|
4
|
-
export async function updateDocsConfigFile(contentDirectoryPath, openApiFiles, docsConfig) {
|
|
4
|
+
export async function updateDocsConfigFile(contentDirectoryPath, openApiFiles, _asyncApiFiles, docsConfig) {
|
|
5
5
|
const configPath = await getConfigPath(contentDirectoryPath, 'docs');
|
|
6
6
|
if (configPath == null && docsConfig == null) {
|
|
7
7
|
throw Error('Must be run in a directory where a docs.json file exists.');
|
|
@@ -16,4 +16,5 @@ export async function updateDocsConfigFile(contentDirectoryPath, openApiFiles, d
|
|
|
16
16
|
await DocsConfigUpdater.writeConfigFile(newDocsConfig);
|
|
17
17
|
return { docsConfig: newDocsConfig, pagesAcc, newOpenApiFiles };
|
|
18
18
|
}
|
|
19
|
-
export { generateOpenApiDivisions
|
|
19
|
+
export { generateOpenApiDivisions } from './generateOpenApiDivisions.js';
|
|
20
|
+
export { generateOpenApiFromDocsConfig } from './generateOpenApiFromDocsConfig.js';
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
import { AsyncAPIFile } from '@mintlify/common/asyncapi';
|
|
1
2
|
import type { OpenApiFile } from '@mintlify/models';
|
|
2
|
-
|
|
3
|
+
type UpdateArgs = {
|
|
4
|
+
contentDirectoryPath: string;
|
|
5
|
+
staticFilenames: string[];
|
|
6
|
+
openApiFiles: OpenApiFile[];
|
|
7
|
+
asyncApiFiles: AsyncAPIFile[];
|
|
8
|
+
contentFilenames: string[];
|
|
9
|
+
snippets: string[];
|
|
10
|
+
snippetV2Filenames: string[];
|
|
11
|
+
docsConfigPath?: string | null;
|
|
12
|
+
};
|
|
13
|
+
export declare const update: ({ contentDirectoryPath, staticFilenames, openApiFiles, asyncApiFiles, contentFilenames, snippets, snippetV2Filenames, docsConfigPath, }: UpdateArgs) => Promise<{
|
|
3
14
|
name: string;
|
|
4
15
|
$schema: string;
|
|
5
16
|
theme: "mint";
|
|
@@ -36,6 +47,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
36
47
|
icon?: string | {
|
|
37
48
|
name: string;
|
|
38
49
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
50
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
39
51
|
} | undefined;
|
|
40
52
|
hidden?: boolean | undefined;
|
|
41
53
|
root?: string | undefined;
|
|
@@ -51,6 +63,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
51
63
|
icon?: string | {
|
|
52
64
|
name: string;
|
|
53
65
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
66
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
54
67
|
} | undefined;
|
|
55
68
|
hidden?: boolean | undefined;
|
|
56
69
|
root?: string | undefined;
|
|
@@ -60,6 +73,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
60
73
|
icon?: string | {
|
|
61
74
|
name: string;
|
|
62
75
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
76
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
63
77
|
} | undefined;
|
|
64
78
|
hidden?: boolean | undefined;
|
|
65
79
|
root?: string | undefined;
|
|
@@ -96,6 +110,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
96
110
|
icon?: string | {
|
|
97
111
|
name: string;
|
|
98
112
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
113
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
99
114
|
} | undefined;
|
|
100
115
|
hidden?: boolean | undefined;
|
|
101
116
|
root?: string | undefined;
|
|
@@ -111,6 +126,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
111
126
|
icon?: string | {
|
|
112
127
|
name: string;
|
|
113
128
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
129
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
114
130
|
} | undefined;
|
|
115
131
|
hidden?: boolean | undefined;
|
|
116
132
|
root?: string | undefined;
|
|
@@ -120,6 +136,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
120
136
|
icon?: string | {
|
|
121
137
|
name: string;
|
|
122
138
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
139
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
123
140
|
} | undefined;
|
|
124
141
|
hidden?: boolean | undefined;
|
|
125
142
|
root?: string | undefined;
|
|
@@ -229,7 +246,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
229
246
|
} | undefined;
|
|
230
247
|
} | undefined;
|
|
231
248
|
icons?: {
|
|
232
|
-
library: "fontawesome";
|
|
249
|
+
library: "fontawesome" | "lucide";
|
|
233
250
|
} | undefined;
|
|
234
251
|
styling?: {
|
|
235
252
|
eyebrows?: "section" | "breadcrumbs" | undefined;
|
|
@@ -344,6 +361,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
344
361
|
icon?: string | {
|
|
345
362
|
name: string;
|
|
346
363
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
364
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
347
365
|
} | undefined;
|
|
348
366
|
hidden?: boolean | undefined;
|
|
349
367
|
root?: string | undefined;
|
|
@@ -359,6 +377,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
359
377
|
icon?: string | {
|
|
360
378
|
name: string;
|
|
361
379
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
380
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
362
381
|
} | undefined;
|
|
363
382
|
hidden?: boolean | undefined;
|
|
364
383
|
root?: string | undefined;
|
|
@@ -368,6 +387,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
368
387
|
icon?: string | {
|
|
369
388
|
name: string;
|
|
370
389
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
390
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
371
391
|
} | undefined;
|
|
372
392
|
hidden?: boolean | undefined;
|
|
373
393
|
root?: string | undefined;
|
|
@@ -404,6 +424,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
404
424
|
icon?: string | {
|
|
405
425
|
name: string;
|
|
406
426
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
427
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
407
428
|
} | undefined;
|
|
408
429
|
hidden?: boolean | undefined;
|
|
409
430
|
root?: string | undefined;
|
|
@@ -419,6 +440,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
419
440
|
icon?: string | {
|
|
420
441
|
name: string;
|
|
421
442
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
443
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
422
444
|
} | undefined;
|
|
423
445
|
hidden?: boolean | undefined;
|
|
424
446
|
root?: string | undefined;
|
|
@@ -428,6 +450,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
428
450
|
icon?: string | {
|
|
429
451
|
name: string;
|
|
430
452
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
453
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
431
454
|
} | undefined;
|
|
432
455
|
hidden?: boolean | undefined;
|
|
433
456
|
root?: string | undefined;
|
|
@@ -537,7 +560,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
537
560
|
} | undefined;
|
|
538
561
|
} | undefined;
|
|
539
562
|
icons?: {
|
|
540
|
-
library: "fontawesome";
|
|
563
|
+
library: "fontawesome" | "lucide";
|
|
541
564
|
} | undefined;
|
|
542
565
|
styling?: {
|
|
543
566
|
eyebrows?: "section" | "breadcrumbs" | undefined;
|
|
@@ -652,6 +675,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
652
675
|
icon?: string | {
|
|
653
676
|
name: string;
|
|
654
677
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
678
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
655
679
|
} | undefined;
|
|
656
680
|
hidden?: boolean | undefined;
|
|
657
681
|
root?: string | undefined;
|
|
@@ -667,6 +691,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
667
691
|
icon?: string | {
|
|
668
692
|
name: string;
|
|
669
693
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
694
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
670
695
|
} | undefined;
|
|
671
696
|
hidden?: boolean | undefined;
|
|
672
697
|
root?: string | undefined;
|
|
@@ -676,6 +701,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
676
701
|
icon?: string | {
|
|
677
702
|
name: string;
|
|
678
703
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
704
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
679
705
|
} | undefined;
|
|
680
706
|
hidden?: boolean | undefined;
|
|
681
707
|
root?: string | undefined;
|
|
@@ -712,6 +738,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
712
738
|
icon?: string | {
|
|
713
739
|
name: string;
|
|
714
740
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
741
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
715
742
|
} | undefined;
|
|
716
743
|
hidden?: boolean | undefined;
|
|
717
744
|
root?: string | undefined;
|
|
@@ -727,6 +754,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
727
754
|
icon?: string | {
|
|
728
755
|
name: string;
|
|
729
756
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
757
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
730
758
|
} | undefined;
|
|
731
759
|
hidden?: boolean | undefined;
|
|
732
760
|
root?: string | undefined;
|
|
@@ -736,6 +764,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
736
764
|
icon?: string | {
|
|
737
765
|
name: string;
|
|
738
766
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
767
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
739
768
|
} | undefined;
|
|
740
769
|
hidden?: boolean | undefined;
|
|
741
770
|
root?: string | undefined;
|
|
@@ -845,7 +874,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
845
874
|
} | undefined;
|
|
846
875
|
} | undefined;
|
|
847
876
|
icons?: {
|
|
848
|
-
library: "fontawesome";
|
|
877
|
+
library: "fontawesome" | "lucide";
|
|
849
878
|
} | undefined;
|
|
850
879
|
styling?: {
|
|
851
880
|
eyebrows?: "section" | "breadcrumbs" | undefined;
|
|
@@ -960,6 +989,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
960
989
|
icon?: string | {
|
|
961
990
|
name: string;
|
|
962
991
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
992
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
963
993
|
} | undefined;
|
|
964
994
|
hidden?: boolean | undefined;
|
|
965
995
|
root?: string | undefined;
|
|
@@ -975,6 +1005,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
975
1005
|
icon?: string | {
|
|
976
1006
|
name: string;
|
|
977
1007
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1008
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
978
1009
|
} | undefined;
|
|
979
1010
|
hidden?: boolean | undefined;
|
|
980
1011
|
root?: string | undefined;
|
|
@@ -984,6 +1015,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
984
1015
|
icon?: string | {
|
|
985
1016
|
name: string;
|
|
986
1017
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1018
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
987
1019
|
} | undefined;
|
|
988
1020
|
hidden?: boolean | undefined;
|
|
989
1021
|
root?: string | undefined;
|
|
@@ -1020,6 +1052,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
1020
1052
|
icon?: string | {
|
|
1021
1053
|
name: string;
|
|
1022
1054
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1055
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
1023
1056
|
} | undefined;
|
|
1024
1057
|
hidden?: boolean | undefined;
|
|
1025
1058
|
root?: string | undefined;
|
|
@@ -1035,6 +1068,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
1035
1068
|
icon?: string | {
|
|
1036
1069
|
name: string;
|
|
1037
1070
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1071
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
1038
1072
|
} | undefined;
|
|
1039
1073
|
hidden?: boolean | undefined;
|
|
1040
1074
|
root?: string | undefined;
|
|
@@ -1044,6 +1078,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
1044
1078
|
icon?: string | {
|
|
1045
1079
|
name: string;
|
|
1046
1080
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1081
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
1047
1082
|
} | undefined;
|
|
1048
1083
|
hidden?: boolean | undefined;
|
|
1049
1084
|
root?: string | undefined;
|
|
@@ -1153,7 +1188,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
1153
1188
|
} | undefined;
|
|
1154
1189
|
} | undefined;
|
|
1155
1190
|
icons?: {
|
|
1156
|
-
library: "fontawesome";
|
|
1191
|
+
library: "fontawesome" | "lucide";
|
|
1157
1192
|
} | undefined;
|
|
1158
1193
|
styling?: {
|
|
1159
1194
|
eyebrows?: "section" | "breadcrumbs" | undefined;
|
|
@@ -1268,6 +1303,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
1268
1303
|
icon?: string | {
|
|
1269
1304
|
name: string;
|
|
1270
1305
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1306
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
1271
1307
|
} | undefined;
|
|
1272
1308
|
hidden?: boolean | undefined;
|
|
1273
1309
|
root?: string | undefined;
|
|
@@ -1283,6 +1319,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
1283
1319
|
icon?: string | {
|
|
1284
1320
|
name: string;
|
|
1285
1321
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1322
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
1286
1323
|
} | undefined;
|
|
1287
1324
|
hidden?: boolean | undefined;
|
|
1288
1325
|
root?: string | undefined;
|
|
@@ -1292,6 +1329,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
1292
1329
|
icon?: string | {
|
|
1293
1330
|
name: string;
|
|
1294
1331
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1332
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
1295
1333
|
} | undefined;
|
|
1296
1334
|
hidden?: boolean | undefined;
|
|
1297
1335
|
root?: string | undefined;
|
|
@@ -1328,6 +1366,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
1328
1366
|
icon?: string | {
|
|
1329
1367
|
name: string;
|
|
1330
1368
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1369
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
1331
1370
|
} | undefined;
|
|
1332
1371
|
hidden?: boolean | undefined;
|
|
1333
1372
|
root?: string | undefined;
|
|
@@ -1343,6 +1382,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
1343
1382
|
icon?: string | {
|
|
1344
1383
|
name: string;
|
|
1345
1384
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1385
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
1346
1386
|
} | undefined;
|
|
1347
1387
|
hidden?: boolean | undefined;
|
|
1348
1388
|
root?: string | undefined;
|
|
@@ -1352,6 +1392,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
1352
1392
|
icon?: string | {
|
|
1353
1393
|
name: string;
|
|
1354
1394
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1395
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
1355
1396
|
} | undefined;
|
|
1356
1397
|
hidden?: boolean | undefined;
|
|
1357
1398
|
root?: string | undefined;
|
|
@@ -1461,7 +1502,7 @@ export declare const update: (contentDirectoryPath: string, staticFilenames: str
|
|
|
1461
1502
|
} | undefined;
|
|
1462
1503
|
} | undefined;
|
|
1463
1504
|
icons?: {
|
|
1464
|
-
library: "fontawesome";
|
|
1505
|
+
library: "fontawesome" | "lucide";
|
|
1465
1506
|
} | undefined;
|
|
1466
1507
|
styling?: {
|
|
1467
1508
|
eyebrows?: "section" | "breadcrumbs" | undefined;
|
|
@@ -8,12 +8,12 @@ import { updateFavicons } from './updateFavicons.js';
|
|
|
8
8
|
import { updateGeneratedDocsNav, updateGeneratedNav } from './updateGeneratedNav.js';
|
|
9
9
|
import { writeFiles } from './write/writeFiles.js';
|
|
10
10
|
import { writeOpenApiFiles } from './write/writeOpenApiFiles.js';
|
|
11
|
-
export const update = async (contentDirectoryPath, staticFilenames, openApiFiles, contentFilenames, snippets, snippetV2Filenames, docsConfigPath) => {
|
|
11
|
+
export const update = async ({ contentDirectoryPath, staticFilenames, openApiFiles, asyncApiFiles, contentFilenames, snippets, snippetV2Filenames, docsConfigPath, }) => {
|
|
12
12
|
const mintConfigResult = await updateMintConfigFile(contentDirectoryPath, openApiFiles);
|
|
13
13
|
// we used the original mint config without openapi pages injected
|
|
14
14
|
// because we will do it in `updateDocsConfigFile`, this will avoid duplicated openapi pages
|
|
15
15
|
const docsConfig = mintConfigResult != null ? upgradeToDocsConfig(mintConfigResult.originalMintConfig) : undefined;
|
|
16
|
-
const { docsConfig: newDocsConfig, pagesAcc, newOpenApiFiles, } = await updateDocsConfigFile(contentDirectoryPath, openApiFiles, docsConfigPath ? undefined : docsConfig);
|
|
16
|
+
const { docsConfig: newDocsConfig, pagesAcc, newOpenApiFiles, } = await updateDocsConfigFile(contentDirectoryPath, openApiFiles, asyncApiFiles, docsConfigPath ? undefined : docsConfig);
|
|
17
17
|
const pagePromises = readPageContents(contentDirectoryPath, newOpenApiFiles, contentFilenames, pagesAcc);
|
|
18
18
|
const snippetV2Promises = readSnippetsV2Contents(contentDirectoryPath, snippetV2Filenames);
|
|
19
19
|
const [snippetV2Contents, { mdxFilesWithNoImports, filesWithImports }] = await Promise.all([
|