@mintlify/prebuild 1.0.1025 → 1.0.1027

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.
@@ -83,6 +83,17 @@ export const generateAsyncApiFromDocsConfig = async (navigation, asyncApiFiles,
83
83
  return processedNav;
84
84
  }
85
85
  let newNav = { ...nav };
86
+ if ('pages' in newNav) {
87
+ const processedPages = await Promise.all(newNav.pages.map(async (page) => {
88
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
89
+ if (typeof page === 'object' && page !== null && 'group' in page) {
90
+ return processNav(page);
91
+ }
92
+ return page;
93
+ }));
94
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
95
+ newNav.pages = processedPages;
96
+ }
86
97
  for (const division of ['groups', ...divisions]) {
87
98
  if (division in newNav) {
88
99
  const items = newNav[division];
@@ -111,6 +122,8 @@ function getDivisionNav(nav) {
111
122
  version: 'version',
112
123
  language: 'language',
113
124
  dropdown: 'dropdown',
125
+ product: 'product',
126
+ item: 'item',
114
127
  };
115
128
  const divisionType = Object.keys(divisionMap).find((key) => key in updatedNav);
116
129
  return {