vitepress-plugin-sidebar-permalink
Version:
VitePress 自动生成 sidebar 和 permalink rewrites 的插件
23 lines (21 loc) • 510 B
TypeScript
interface SidebarItem {
text: string;
link?: string;
items?: SidebarItem[];
collapsed?: boolean;
activeMatch?: string;
}
interface Frontmatter {
private?: boolean;
permalink?: string;
}
interface RewritesJson {
rewrites: Record<string, string>;
}
interface SidebarPermalinkOptions {
root?: string;
dir?: string;
rewritesPath?: string;
ignoreDirs?: string[];
}
export type { Frontmatter as F, RewritesJson as R, SidebarPermalinkOptions as S, SidebarItem as a };