@mintlify/common 1.0.726 → 1.0.727

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.
@@ -1,9 +1,7 @@
1
1
  import { DecoratedNavigationConfig } from '@mintlify/validation';
2
2
  /**
3
3
  * Generates a map from page paths to their hidden status based on navigation hierarchy.
4
- * A page is hidden if:
5
- * - It has noindex: true in its frontmatter, OR
6
- * - Any parent group/division has hidden: true
4
+ * A page is hidden if any parent group/division has hidden: true
7
5
  * Assumes page hrefs in navWithPageContext have a leading / but config page paths do not.
8
6
  * Outputted dictionary will NOT have a leading / in the dictionary keys.
9
7
  */
@@ -3,9 +3,7 @@ import { isPage } from '../navigation/isPage.js';
3
3
  import { optionallyRemoveLeadingSlash } from '../optionallyRemoveLeadingSlash.js';
4
4
  /**
5
5
  * Generates a map from page paths to their hidden status based on navigation hierarchy.
6
- * A page is hidden if:
7
- * - It has noindex: true in its frontmatter, OR
8
- * - Any parent group/division has hidden: true
6
+ * A page is hidden if any parent group/division has hidden: true
9
7
  * Assumes page hrefs in navWithPageContext have a leading / but config page paths do not.
10
8
  * Outputted dictionary will NOT have a leading / in the dictionary keys.
11
9
  */
@@ -22,9 +20,7 @@ function generatePathToHiddenDictRecursive(pathToHiddenDict, nav, parentHidden)
22
20
  const effectiveHidden = 'hidden' in nav && typeof nav.hidden === 'boolean' ? nav.hidden : parentHidden;
23
21
  if (isPage(nav)) {
24
22
  const key = optionallyRemoveLeadingSlash(nav.href);
25
- // A page is hidden if parent has hidden: true OR page has noindex: true in frontmatter
26
- const pageNoindex = (_a = nav.noindex) !== null && _a !== void 0 ? _a : nav.hidden;
27
- const isHidden = pageNoindex !== null && pageNoindex !== void 0 ? pageNoindex : effectiveHidden;
23
+ const isHidden = (_a = nav.hidden) !== null && _a !== void 0 ? _a : effectiveHidden;
28
24
  // Only add hidden pages to the dictionary (more efficient)
29
25
  // We keep the first value encountered to handle duplicate paths
30
26
  if (isHidden && !pathToHiddenDict.has(key)) {