@mintlify/common 1.0.671 → 1.0.672

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.
@@ -22,8 +22,8 @@ function generatePathToHiddenDictRecursive(pathToHiddenDict, nav, parentHidden)
22
22
  if (isPage(nav)) {
23
23
  const key = optionallyRemoveLeadingSlash(nav.href);
24
24
  // A page is hidden if parent has hidden: true OR page has noindex: true in frontmatter
25
- const pageNoindex = 'noindex' in nav && nav.noindex === true;
26
- const isHidden = effectiveHidden || pageNoindex;
25
+ const pageNoindex = nav.noindex;
26
+ const isHidden = pageNoindex !== null && pageNoindex !== void 0 ? pageNoindex : effectiveHidden;
27
27
  // Only add hidden pages to the dictionary (more efficient)
28
28
  // We keep the first value encountered to handle duplicate paths
29
29
  if (isHidden && !pathToHiddenDict.has(key)) {