@mintlify/scraping 4.0.923 → 4.0.925
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/scraping",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.925",
|
|
4
4
|
"description": "Scrape documentation frameworks to Mintlify docs",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"format:check": "oxfmt --check"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@mintlify/common": "1.0.
|
|
46
|
+
"@mintlify/common": "1.0.1059",
|
|
47
47
|
"fast-xml-parser": "5.7.3",
|
|
48
48
|
"fs-extra": "11.1.1",
|
|
49
49
|
"graphql": "16.11.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@mintlify/models": "0.0.344",
|
|
67
67
|
"@mintlify/ts-config": "2.0.2",
|
|
68
|
-
"@mintlify/validation": "0.1.
|
|
68
|
+
"@mintlify/validation": "0.1.809",
|
|
69
69
|
"@tsconfig/recommended": "1.0.2",
|
|
70
70
|
"@types/hast": "3.0.4",
|
|
71
71
|
"@types/mdast": "4.0.4",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"typescript": "5.5.3",
|
|
80
80
|
"vitest": "2.1.9"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "a642a7760c7cf953741277a2699b9fa2a9f8f393"
|
|
83
83
|
}
|
package/src/openapi/common.ts
CHANGED
|
@@ -157,11 +157,13 @@ export function processOpenApiPath<N, DN>(
|
|
|
157
157
|
options: GenerateOpenApiPagesOptions,
|
|
158
158
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
159
159
|
findNavGroup: (nav: any, groupName?: string) => any
|
|
160
|
-
) {
|
|
160
|
+
): string[] {
|
|
161
161
|
const openApiFilePathFromRoot = options.openApiFilePath
|
|
162
162
|
? optionallyAddLeadingSlash(options.openApiFilePath)
|
|
163
163
|
: undefined;
|
|
164
164
|
|
|
165
|
+
const generatedSlugs: string[] = [];
|
|
166
|
+
|
|
165
167
|
Object.values(OpenAPIV3.HttpMethods).forEach((method) => {
|
|
166
168
|
if (method in pathItemObject) {
|
|
167
169
|
const operation = pathItemObject[method];
|
|
@@ -249,6 +251,7 @@ export function processOpenApiPath<N, DN>(
|
|
|
249
251
|
decoratedNavGroup.push(page);
|
|
250
252
|
}
|
|
251
253
|
pagesAcc[filenameWithoutExtension] = page;
|
|
254
|
+
generatedSlugs.push(filenameWithoutExtension);
|
|
252
255
|
|
|
253
256
|
if (!options.writeFiles) {
|
|
254
257
|
registerXMintContent(filenameWithoutExtension, xMint?.content);
|
|
@@ -273,6 +276,8 @@ export function processOpenApiPath<N, DN>(
|
|
|
273
276
|
}
|
|
274
277
|
}
|
|
275
278
|
});
|
|
279
|
+
|
|
280
|
+
return generatedSlugs;
|
|
276
281
|
}
|
|
277
282
|
|
|
278
283
|
export function processOpenApiWebhook<N, DN>(
|
|
@@ -286,11 +291,13 @@ export function processOpenApiWebhook<N, DN>(
|
|
|
286
291
|
options: GenerateOpenApiPagesOptions,
|
|
287
292
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
288
293
|
findNavGroup: (nav: any, groupName?: string) => any
|
|
289
|
-
) {
|
|
294
|
+
): string[] {
|
|
290
295
|
const openApiFilePathFromRoot = options.openApiFilePath
|
|
291
296
|
? optionallyAddLeadingSlash(options.openApiFilePath)
|
|
292
297
|
: undefined;
|
|
293
298
|
|
|
299
|
+
const generatedSlugs: string[] = [];
|
|
300
|
+
|
|
294
301
|
Object.values(OpenAPIV3.HttpMethods).forEach((method) => {
|
|
295
302
|
if (method in webhookObject) {
|
|
296
303
|
const operation = webhookObject[method];
|
|
@@ -344,6 +351,7 @@ export function processOpenApiWebhook<N, DN>(
|
|
|
344
351
|
decoratedNavGroup.push(page);
|
|
345
352
|
}
|
|
346
353
|
pagesAcc[filenameWithoutExtension] = page;
|
|
354
|
+
generatedSlugs.push(filenameWithoutExtension);
|
|
347
355
|
|
|
348
356
|
if (!options.writeFiles) {
|
|
349
357
|
registerXMintContent(filenameWithoutExtension, xMint?.content);
|
|
@@ -368,6 +376,8 @@ export function processOpenApiWebhook<N, DN>(
|
|
|
368
376
|
}
|
|
369
377
|
}
|
|
370
378
|
});
|
|
379
|
+
|
|
380
|
+
return generatedSlugs;
|
|
371
381
|
}
|
|
372
382
|
|
|
373
383
|
export const getXMintGroups = ({
|