@mintlify/common
Version:
Commonly shared code within Mintlify
10 lines (9 loc) • 628 B
TypeScript
import { DecoratedNavigationConfig } from '@mintlify/validation';
/**
* Generates a map from page paths to their public status based on navigation hierarchy.
* A page is public if it or any parent group/division has public: true.
* Assumes page hrefs in navWithPageContext have a leading / but config page paths do not.
* Outputted dictionary will NOT have a leading / in the dictionary keys.
* @param rootPublic - The default public status for pages not explicitly set in navigation
*/
export declare function generatePathToPublicDict(decoratedNav: DecoratedNavigationConfig, rootPublic?: boolean): Map<string, boolean>;