@mintlify/scraping 4.0.693 → 4.0.695
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.695",
|
|
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.831",
|
|
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.287",
|
|
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.651",
|
|
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": "f39058068b7db0e18331e31d433c78537d2a4e3a"
|
|
86
86
|
}
|
package/src/openapi/common.ts
CHANGED
|
@@ -199,7 +199,7 @@ export function processOpenApiPath<N, DN>(
|
|
|
199
199
|
? parse(options.openApiFilePath).name
|
|
200
200
|
: 'filler-filename',
|
|
201
201
|
spec: schema,
|
|
202
|
-
originalFileLocation:
|
|
202
|
+
originalFileLocation: openApiFilePathFromRoot,
|
|
203
203
|
},
|
|
204
204
|
],
|
|
205
205
|
openapiMetaTag
|
|
@@ -216,11 +216,17 @@ export function processOpenApiPath<N, DN>(
|
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
const slugTitle = slugToTitle(filenameWithoutExtension);
|
|
220
|
+
|
|
219
221
|
const page: DecoratedNavigationPage = {
|
|
220
|
-
title: titleTag ??
|
|
222
|
+
title: titleTag ?? slugTitle,
|
|
221
223
|
description,
|
|
222
224
|
deprecated: operation?.deprecated,
|
|
223
225
|
version: options.version,
|
|
226
|
+
// When a file-path spec has x-mint.href overriding the path, use the slug-derived
|
|
227
|
+
// title for the sidebar so the nav shows the user-chosen name rather than the
|
|
228
|
+
// OpenAPI summary. Only for openApiFilePath specs to avoid changing URL-based behavior.
|
|
229
|
+
...(xMint?.href && titleTag && options.openApiFilePath ? { sidebarTitle: slugTitle } : {}),
|
|
224
230
|
...xMintMetadata,
|
|
225
231
|
openapi: openapiMetaTag,
|
|
226
232
|
href: posix.resolve('/', filenameWithoutExtension),
|