vuejs / vuepress

📝 Minimalistic Vue-powered static site generator
https://vuepress.vuejs.org
MIT License
22.6k stars 4.76k forks source link

分组不起作用 #3226

Open LBC000 opened 2 months ago

LBC000 commented 2 months ago

image

sidebar: {
      //左侧列表
      "/guide/": [
        {
          title: "开始",
          collapsable: true,
          children: ["introduction", "quick-start"]
        },
        {
          title: "测试",
          children: ["test"]
        }
      ],
      // "/api/": ["Usage", ],
      // "/guide/ts/": [
      //   {
      //     title: "Typescript 学习",
      //     collapsable: true,
      //     children: ["test01", "test02", "test03"]
      //   }
      // ],
      "/": [""] //不能放在数组第一个,否则会导致右侧栏无法使用
    }
{
  "name": "vuepress-doc",
  "version": "0.0.1",
  "description": "A VuePress project",
  "license": "MIT",
  "type": "module",
  "scripts": {
    "docs:build": "vuepress build docs",
    "docs:clean-dev": "vuepress dev docs --clean-cache",
    "dev": "vuepress dev docs",
    "docs:update-package": "pnpm dlx vp-update"
  },
  "devDependencies": {
    "@vuepress/bundler-vite": "^2.0.0-rc.7",
    "@vuepress/theme-default": "^2.0.0-rc.11",
    "vue": "^3.4.0",
    "vuepress": "^2.0.0-rc.7"
  },
  "dependencies": {
  }
}