UNPKG

@mintlify/common

Version:

Commonly shared code within Mintlify

10 lines (9 loc) 642 B
import { DecoratedNavigationConfig } from '@mintlify/validation'; /** * Generates a map from page paths to their search boost multiplier based on navigation hierarchy. * A page inherits its boost factor from itself or any parent group/division that sets `boost`. * The map only contains entries for pages with a boost factor > 1; unboosted pages are omitted. * 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. */ export declare function generatePathToBoostDict(decoratedNav: DecoratedNavigationConfig): Map<string, number>;