Xaviw/vite-plugin-vitepress-auto-nav

目录都没了,空白了

Closed this issue · 2 comments

image

使用插件后

image image

我没有发现问题怎么出现的,有复现的代码仓库吗

sidebar 的类型定义是:

export type Sidebar = SidebarItem[] | SidebarMulti

  export interface SidebarMulti {
    [path: string]: SidebarItem[] | { items: SidebarItem[]; base: string }
  }

我插件中生成的 SidebarMulti 格式的数据,是符合要求的