@mintlify/scraping 4.0.1185 → 4.0.1187
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.1187",
|
|
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.1311",
|
|
47
47
|
"fast-xml-parser": "5.7.3",
|
|
48
48
|
"fs-extra": "11.1.1",
|
|
49
49
|
"graphql": "16.11.0",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"optional": true
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "b9e98365d5746ec0cb3c050073e080c03e41f453"
|
|
91
91
|
}
|
package/src/sdk/converters/go.ts
CHANGED
|
@@ -377,14 +377,11 @@ class GoIndex {
|
|
|
377
377
|
|
|
378
378
|
href(importPath: string, name: string | undefined, isPrivate: boolean): string | undefined {
|
|
379
379
|
if (name) {
|
|
380
|
-
const
|
|
381
|
-
const location =
|
|
382
|
-
this.symbols.get(`${importPath}#${name}`) ??
|
|
383
|
-
(dot > 0 ? this.symbols.get(`${importPath}#${name.slice(0, dot)}`) : undefined);
|
|
380
|
+
const location = this.symbols.get(`${importPath}#${name}`);
|
|
384
381
|
if (location) return `/${location.slug}${location.anchor ? `#${location.anchor}` : ''}`;
|
|
385
382
|
}
|
|
386
383
|
const packageSlug = this.packages.get(importPath);
|
|
387
|
-
if (packageSlug) return `/${packageSlug}`;
|
|
384
|
+
if (packageSlug) return name ? undefined : `/${packageSlug}`;
|
|
388
385
|
if (isPrivate) return undefined;
|
|
389
386
|
return `https://pkg.go.dev/${encodeHref(importPath)}${name ? `#${encodeHref(name)}` : ''}`;
|
|
390
387
|
}
|