File tree 7 files changed +38
-9
lines changed
7 files changed +38
-9
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,31 @@ export default {
13
13
]
14
14
}
15
15
] ,
16
- sidebar : [
17
- {
18
- text : 'Guide' ,
19
- items : [
20
- { text : 'Introduction' , link : '/introduction' } ,
21
- { text : 'Getting Started' , link : '/getting-started' } ,
22
- ]
23
- }
24
- ]
16
+ sidebar : {
17
+ // This sidebar gets displayed when user is under `guide` directory.
18
+ '/guide/' : [
19
+ {
20
+ text : 'Guide' ,
21
+ items : [
22
+ // This shows `/guide/index.md` page.
23
+ { text : 'Index' , link : '/guide/' } , // /guide/index.md
24
+ { text : 'One' , link : '/guide/one' } , // /guide/one.md
25
+ { text : 'Two' , link : '/guide/two' } // /guide/two.md
26
+ ]
27
+ }
28
+ ] ,
29
+ // This sidebar gets displayed when user is under `config` directory.
30
+ '/config/' : [
31
+ {
32
+ text : 'Config' ,
33
+ items : [
34
+ // This shows `/config/index.md` page.
35
+ { text : 'Index' , link : '/config/' } , // /config/index.md
36
+ { text : 'Three' , link : '/config/three' } , // /config/three.md
37
+ { text : 'Four' , link : '/config/four' } // /config/four.md
38
+ ]
39
+ }
40
+ ]
41
+ }
25
42
}
26
43
}
Original file line number Diff line number Diff line change
1
+
2
+ # index
Original file line number Diff line number Diff line change
1
+
2
+ # one
Original file line number Diff line number Diff line change
1
+
2
+ # two
Original file line number Diff line number Diff line change
1
+
2
+ # index
Original file line number Diff line number Diff line change
1
+
2
+ # one
Original file line number Diff line number Diff line change
1
+
2
+ # two
You can’t perform that action at this time.
0 commit comments