@limy-org/vite-plugin-vitepress-auto-sidebar
Version:
Automatically generate VitePress sidebar
21 lines (18 loc) • 487 B
TypeScript
import { Plugin } from 'vite';
import { DefaultTheme } from 'vitepress';
interface AutoSidebarOptions {
/**
* call back when sidebar resolved.
*/
sidebarResolved?: (value: DefaultTheme.SidebarMulti) => void;
/**
* doc dir
*/
root?: string;
/**
* ignore some file
*/
ignores?: string[];
}
declare function VitePluginAutoSidebar(options?: AutoSidebarOptions): Plugin;
export { AutoSidebarOptions, VitePluginAutoSidebar as default };