QC2168 / vite-plugin-vitepress-auto-sidebar

The vite plugin that automatically generates sidebar data by scanning directories, based on vitepress
MIT License
85 stars 12 forks source link

左边侧边栏是空的 #25

Closed weited closed 3 months ago

weited commented 4 months ago

大佬你好, 我安装之后, 左边侧边栏是空的, 是不是我配置错了什么

系统: Win11 Node: 18, 20 多个版本 pnpm: 8.15.6,

import { defineConfig } from "vitepress";
import AutoSidebar from "vite-plugin-vitepress-auto-sidebar";

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "xxx",
  description: "Documentation",
  // cleanUrls: true,
  vite: {
    plugins: [
      AutoSidebar({
        collapsed: false,
      }),
    ],
  },
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: "Home", link: "/" },
      { text: "Examples", link: "/markdown-examples" },
    ],
},
})

image

QC2168 commented 4 months ago

文件目录是怎么样的?可以提供最小demo吗

qintang commented 4 months ago

. ├── docs │ ├── 2022任�\212�summary.md │ ├── README.md │ ├── api-examples.md │ ├── he │ │ └── hello.md │ ├── index.md │ ├── markdown-examples.md │ └── onesh.md ├── package-lock.json ├── package.json ├── upload_file.ddmc.sh └── yarn.lock

2 directories, 11 files

QC2168 commented 4 months ago

看上去是没有问题的,从docs里面解析,可以提供下仓库地址吗