@mintlify/common
Version:
Commonly shared code within Mintlify
17 lines (16 loc) • 888 B
TypeScript
import { DecoratedNavigationConfig } from '@mintlify/validation';
/**
* Generates a map from page paths to whether they are hidden from search,
* sitemap, AI assistant, and llms.txt indexing. Mirrors generatePathToHiddenDict
* for nav purposes, but a node with `hidden: true, searchable: true` opts its
* descendants back into indexing — they remain hidden in the rendered nav.
*
* Semantic:
* - Walking down the tree, an "indexable" chain is broken by `hidden: true`
* unless the same node also has `searchable: true`, in which case the
* chain is restored from that point down.
* - `searchable` on a non-hidden node has no effect.
* - A page's own frontmatter `hidden: true` is always honored.
* - Output keys have no leading /.
*/
export declare function generatePathToHiddenFromSearchDict(decoratedNav: DecoratedNavigationConfig): Map<string, boolean>;