Comments (6)
这是fork修改的地址 vuepress,附上问题截图
使用官方的配置也没有生效
sidebar: {
'/pages/folder1/': [
'test1',
'test2',
'test3',
],
'/pages/folder2/': [
'test4',
'test5'
],
}
出来的是这个样子
vuepres是1.2.0版本,yarn全局安装的,window8.1系统
from vuepress.
你理解错了 你所配置的测试菜单3,不是在这页显示的,是在/pages/folder2/test4.md的页面才显示的。你得根据当前路由的地址判断当前的侧边栏会显示什么。
from vuepress.
那我该如何配置sidebar,可以让folder1的测试菜单1,2和folder2的测试菜单3在同一个路由下都显示呢?
from vuepress.
那我该如何配置sidebar,可以让folder1的测试菜单1,2和folder2的测试菜单3在同一个路由下都显示呢?
已解决,配置成数组形式,如
sidebar: [{}, {}, {}]
参考 vuepress-nested-sidebar-demo
from vuepress.
楼主,求源码,我现在还是不行
from vuepress.
from vuepress.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vuepress.