@mintlify/validation 0.1.288 → 0.1.290
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/dist/mint-config/schemas/v2/index.d.ts +2135 -0
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +42 -0
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +3 -0
- package/dist/mint-config/schemas/v2/properties/navigation/global.d.ts +31 -0
- package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +328 -0
- package/dist/mint-config/schemas/v2/themes/linden.d.ts +427 -0
- package/dist/mint-config/schemas/v2/themes/maple.d.ts +427 -0
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +427 -0
- package/dist/mint-config/schemas/v2/themes/palm.d.ts +427 -0
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +287 -0
- package/dist/mint-config/schemas/v2/themes/willow.d.ts +427 -0
- package/dist/mint-config/upgrades/updateNavigationToDocsConfig.js +5 -5
- package/dist/mint-config/validateConfig.d.ts +700 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -127,12 +127,12 @@ const processDivisions = (type, divisions = [], navigationGroups = [], shouldIns
|
|
|
127
127
|
}
|
|
128
128
|
const { matchedGroups, unmatchedGroups } = findPagesForPrefix(remainingGroups, division, versionName, ignoredDivisions);
|
|
129
129
|
remainingGroups = unmatchedGroups;
|
|
130
|
+
const divisionWithoutHref = _.omit(baseDivision, 'href');
|
|
131
|
+
if (moreTabs.length)
|
|
132
|
+
return Object.assign(Object.assign({}, divisionWithoutHref), { tabs: moreTabs });
|
|
133
|
+
if (moreAnchors.length)
|
|
134
|
+
return Object.assign(Object.assign({}, divisionWithoutHref), { anchors: moreAnchors });
|
|
130
135
|
if (matchedGroups.length) {
|
|
131
|
-
const divisionWithoutHref = _.omit(baseDivision, 'href');
|
|
132
|
-
if (moreTabs.length)
|
|
133
|
-
return Object.assign(Object.assign({}, divisionWithoutHref), { tabs: moreTabs });
|
|
134
|
-
if (moreAnchors.length)
|
|
135
|
-
return Object.assign(Object.assign({}, divisionWithoutHref), { anchors: moreAnchors });
|
|
136
136
|
return Object.assign(Object.assign({}, divisionWithoutHref), { groups: matchedGroups });
|
|
137
137
|
}
|
|
138
138
|
if (!matchedGroups.length && !isAbsoluteUrl(division.url) && !division.openapi)
|