@mintlify/scraping 4.0.711 → 4.0.713
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.713",
|
|
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": "prettier . --check"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@mintlify/common": "1.0.
|
|
46
|
+
"@mintlify/common": "1.0.849",
|
|
47
47
|
"@mintlify/openapi-parser": "^0.0.8",
|
|
48
48
|
"fs-extra": "11.1.1",
|
|
49
49
|
"hast-util-to-mdast": "10.1.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@mintlify/models": "0.0.290",
|
|
67
67
|
"@mintlify/prettier-config": "1.0.4",
|
|
68
68
|
"@mintlify/ts-config": "2.0.2",
|
|
69
|
-
"@mintlify/validation": "0.1.
|
|
69
|
+
"@mintlify/validation": "0.1.663",
|
|
70
70
|
"@trivago/prettier-plugin-sort-imports": "4.3.0",
|
|
71
71
|
"@tsconfig/recommended": "1.0.2",
|
|
72
72
|
"@types/hast": "3.0.4",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"typescript": "5.5.3",
|
|
83
83
|
"vitest": "2.1.9"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "b1b4d6293cb62b84161652d8a26e509941f562b5"
|
|
86
86
|
}
|
package/src/openapi/common.ts
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
registerXMintContent,
|
|
10
10
|
prepareStringToBeValidFilename,
|
|
11
11
|
generateUniqueFilenameWithoutExtension,
|
|
12
|
+
getTagDisplayName,
|
|
12
13
|
} from '@mintlify/common';
|
|
13
14
|
import type { DecoratedNavigationPage, PageMetaTags } from '@mintlify/models';
|
|
14
15
|
import { XMint } from '@mintlify/validation';
|
|
@@ -167,12 +168,13 @@ export function processOpenApiPath<N, DN>(
|
|
|
167
168
|
xMint.href = optionallyAddLeadingSlash(xMint.href);
|
|
168
169
|
}
|
|
169
170
|
|
|
170
|
-
const
|
|
171
|
+
const tagName = operation?.tags?.[0];
|
|
172
|
+
const groupName = getTagDisplayName(tagName, schema);
|
|
171
173
|
let title =
|
|
172
174
|
prepareStringToBeValidFilename(operation?.summary) ??
|
|
173
175
|
`${method}-${prepareStringToBeValidFilename(path)}`;
|
|
174
176
|
|
|
175
|
-
let folder = prepareStringToBeValidFilename(
|
|
177
|
+
let folder = prepareStringToBeValidFilename(tagName) ?? '';
|
|
176
178
|
let base = posix.join(options.outDir ?? '', folder, title);
|
|
177
179
|
|
|
178
180
|
if (xMint?.href) {
|
|
@@ -264,7 +266,7 @@ export function processOpenApiPath<N, DN>(
|
|
|
264
266
|
export function processOpenApiWebhook<N, DN>(
|
|
265
267
|
webhook: string,
|
|
266
268
|
webhookObject: OpenAPIV3.PathItemObject<OpenApiExtensions>,
|
|
267
|
-
|
|
269
|
+
schema: OpenAPI.Document,
|
|
268
270
|
nav: N,
|
|
269
271
|
decoratedNav: DN,
|
|
270
272
|
writePromises: Promise<void>[],
|
|
@@ -289,11 +291,12 @@ export function processOpenApiWebhook<N, DN>(
|
|
|
289
291
|
xMint.href = optionallyAddLeadingSlash(xMint.href);
|
|
290
292
|
}
|
|
291
293
|
|
|
292
|
-
const
|
|
294
|
+
const tagName = operation?.tags?.[0];
|
|
295
|
+
const groupName = getTagDisplayName(tagName, schema);
|
|
293
296
|
let title =
|
|
294
297
|
prepareStringToBeValidFilename(operation?.summary) ??
|
|
295
298
|
`${prepareStringToBeValidFilename(webhook)}`;
|
|
296
|
-
let folder = prepareStringToBeValidFilename(
|
|
299
|
+
let folder = prepareStringToBeValidFilename(tagName) ?? '';
|
|
297
300
|
let base = posix.join(options.outDir ?? '', folder, title);
|
|
298
301
|
|
|
299
302
|
if (xMint?.href) {
|