@logicflow/dumi-theme-simple
Version:
Simple website theme based on dumi2.
21 lines (20 loc) • 536 B
TypeScript
import { Example, ExampleTopic } from '../types';
/**
* 获取案例页面的所有主题
*
* @returns {ExampleTopic[]} 案例主题列表
*/
export declare const getExamplesPageTopics: (exampleTopics: ExampleTopic[], showAPIDoc: boolean) => {
id: string;
title: {
zh: string;
en: string;
};
icon: string;
examples: Example[];
childrenKey: string;
}[];
/**
* 根据目录结构返回,所有的 example 页面,用于 buiild static
*/
export declare function getExamplePaths(): string[];