Code Monkey home page Code Monkey logo

Comments (6)

xblcity avatar xblcity commented on September 15, 2024

这是fork修改的地址 vuepress,附上问题截图

问题贴图

使用官方的配置也没有生效

sidebar: {
  '/pages/folder1/': [
      'test1',
      'test2',
      'test3',
  ],

  '/pages/folder2/': [
      'test4',
      'test5'
  ],
}

出来的是这个样子

问题贴图

vuepres是1.2.0版本,yarn全局安装的,window8.1系统

from vuepress.

dwanda avatar dwanda commented on September 15, 2024

你理解错了 你所配置的测试菜单3,不是在这页显示的,是在/pages/folder2/test4.md的页面才显示的。你得根据当前路由的地址判断当前的侧边栏会显示什么。

from vuepress.

xblcity avatar xblcity commented on September 15, 2024

那我该如何配置sidebar,可以让folder1的测试菜单1,2和folder2的测试菜单3在同一个路由下都显示呢?

from vuepress.

xblcity avatar xblcity commented on September 15, 2024

那我该如何配置sidebar,可以让folder1的测试菜单1,2和folder2的测试菜单3在同一个路由下都显示呢?

已解决,配置成数组形式,如

sidebar: [{}, {}, {}]

参考 vuepress-nested-sidebar-demo

from vuepress.

CrCu804 avatar CrCu804 commented on September 15, 2024

楼主,求源码,我现在还是不行

from vuepress.

dwanda avatar dwanda commented on September 15, 2024

from vuepress.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.