@mintlify/prebuild 1.0.502 → 1.0.504
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.
|
@@ -74,6 +74,14 @@ export const generateOpenApiFromDocsConfig = async (navigation, openApiFiles, pa
|
|
|
74
74
|
return processedNav;
|
|
75
75
|
}
|
|
76
76
|
let newNav = { ...nav };
|
|
77
|
+
if ('pages' in newNav) {
|
|
78
|
+
newNav.pages = await Promise.all(newNav.pages.map(async (page) => {
|
|
79
|
+
if (typeof page === 'object' && page !== null && 'group' in page) {
|
|
80
|
+
return processNav(page);
|
|
81
|
+
}
|
|
82
|
+
return page;
|
|
83
|
+
}));
|
|
84
|
+
}
|
|
77
85
|
for (const division of ['groups', ...divisions]) {
|
|
78
86
|
if (division in newNav) {
|
|
79
87
|
const items = newNav[division];
|