@logicflow/dumi-theme-simple
Version:
Simple website theme based on dumi2.
20 lines (19 loc) • 632 B
TypeScript
export declare function getOpenKeys(): any[];
export declare function getBaseRoute(): string;
export declare function getIndexRoute(MenuData: any): any;
/**
* 返回需要跳转的 pathname
* /en/api/ ----> /en/api/[first-doc]
* /zh/api/ ----> /api/[first-doc]
* /en/docs/api/ ----> /en/api/[first-doc]
* /zh/docs/api/ ----> /api/[first-doc]
*
* /en/docs/api/xxx ----> /en/api/xxx
* /zh/docs/api/xxx ----> /api/xxx
*
* /docs/api/xxx -----> /api/xxx
*
* @param p
*/
export declare function getNavigateUrl(pathname: string, first: string, siderbarMenu: any[]): string;
export declare function safeEval(source: any): any;