@iminu/vitepress-plugin-auto-sidebar
Version:
Automatically generate VitePress sidebar
25 lines (22 loc) • 559 B
TypeScript
import { Plugin } from 'vite';
import { DefaultTheme } from 'vitepress';
interface AutoSidebarOptions {
/**
* call back when sidebar resolved.
*/
sidebarResolved?: (value: DefaultTheme.SidebarMulti) => void;
/**
* doc dir
*/
docs?: string;
/**
* ignore some file
*/
ignores?: string[];
/**
* .vitepress 所在的文件夹
*/
root?: string;
}
declare function VitePluginAutoSidebar(options?: AutoSidebarOptions): Plugin;
export { AutoSidebarOptions, VitePluginAutoSidebar as default };