@mintlify/scraping 4.0.925 → 4.0.927
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.927",
|
|
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.1060",
|
|
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.810",
|
|
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": "2408564d46ffaedeb38cbfcd738bf59b8f63facd"
|
|
83
83
|
}
|
package/src/openapi/common.ts
CHANGED
|
@@ -120,6 +120,7 @@ export type GenerateOpenApiPagesOptions = {
|
|
|
120
120
|
writeFiles?: boolean;
|
|
121
121
|
outDir?: string;
|
|
122
122
|
outDirBasePath?: string;
|
|
123
|
+
mountPath?: string;
|
|
123
124
|
overwrite?: boolean;
|
|
124
125
|
localSchema?: boolean;
|
|
125
126
|
writeFile?: (filename: string, content: string) => void | Promise<void>;
|
|
@@ -193,7 +194,7 @@ export function processOpenApiPath<N, DN>(
|
|
|
193
194
|
const slug = optionallyRemoveLeadingSlash(xMint.href);
|
|
194
195
|
title = posix.parse(slug).name;
|
|
195
196
|
folder = posix.parse(slug).dir;
|
|
196
|
-
base = posix.join(folder, title);
|
|
197
|
+
base = posix.join(options.mountPath ?? '', folder, title);
|
|
197
198
|
}
|
|
198
199
|
|
|
199
200
|
const navGroup = findNavGroup(nav, groupName);
|
|
@@ -322,7 +323,7 @@ export function processOpenApiWebhook<N, DN>(
|
|
|
322
323
|
const slug = optionallyRemoveLeadingSlash(xMint.href);
|
|
323
324
|
title = posix.parse(slug).name;
|
|
324
325
|
folder = posix.parse(slug).dir;
|
|
325
|
-
base = posix.join(folder, title);
|
|
326
|
+
base = posix.join(options.mountPath ?? '', folder, title);
|
|
326
327
|
}
|
|
327
328
|
|
|
328
329
|
const navGroup = findNavGroup(nav, groupName);
|