Skip to content

Commit 023a22c

Browse files
Split the sidebar into categories (#36)
1 parent 8d63047 commit 023a22c

File tree

1 file changed

+62
-24
lines changed

1 file changed

+62
-24
lines changed

docs/.vitepress/config.mts

Lines changed: 62 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,25 @@ export default defineConfig({
3939

4040
sidebar: [
4141
{
42-
text: 'FAQ',
43-
link: '/faq/',
42+
text: 'FAQ Home',
43+
link: '/faq/'
44+
},
45+
{
46+
text: 'Learning',
4447
items: [
4548
{
4649
text: 'How should I learn Vue?',
4750
link: '/faq/learning-vue'
48-
},
51+
}
4952
// {
5053
// text: 'Can you show me a large, open-source Vue project that I can study?',
5154
// link: '/faq/large-example-applications'
52-
// },
55+
// }
56+
]
57+
},
58+
{
59+
text: 'New project decisions',
60+
items: [
5361
{
5462
text: 'Which Vue component library should I use?',
5563
link: '/faq/component-library'
@@ -69,15 +77,25 @@ export default defineConfig({
6977
// {
7078
// text: 'I need users to stay logged in if they refresh the page. Should I use cookies or local storage?',
7179
// link: '/faq/cookies-local-storage'
72-
// },
80+
// }
81+
]
82+
},
83+
{
84+
text: 'Working with npm',
85+
items: [
7386
{
7487
text: `How do I check which Vue version something is using?`,
7588
link: '/faq/checking-versions'
7689
},
7790
{
7891
text: 'How do I run an old project?',
7992
link: '/faq/running-old-projects'
80-
},
93+
}
94+
]
95+
},
96+
{
97+
text: 'Deployment',
98+
items: [
8199
{
82100
text: 'Why is there a <code>#</code> before my route path?',
83101
link: '/faq/hash-before-route-path'
@@ -97,7 +115,12 @@ export default defineConfig({
97115
{
98116
text: 'How do I add dynamic <code>&lt;meta&gt;</code> tags to my application?',
99117
link: '/faq/dynamic-meta-tags'
100-
},
118+
}
119+
]
120+
},
121+
{
122+
text: 'Vue code patterns',
123+
items: [
101124
// {
102125
// text: 'How should my components communicate?',
103126
// link: '/faq/component-communication'
@@ -145,23 +168,38 @@ export default defineConfig({
145168
{
146169
text: `Why can't I use the current route in <code>App.vue</code>?`,
147170
link: '/faq/accessing-the-route'
148-
},
149-
// {
150-
// text: `Why does my logging show an empty/missing value after I've loaded the data?`,
151-
// link: '/faq/logging-after-loading'
152-
// },
153-
// {
154-
// text: 'Why can I see my data in console logging, but if I try to access it I get undefined or an error?',
155-
// link: '/faq/logging-is-live'
156-
// },
157-
// {
158-
// text: 'When to use reactive() and ref()?',
159-
// link: '/faq/reactive-ref'
160-
// },
161-
// {
162-
// text: 'Why are the new value and old value the same in my watcher?',
163-
// link: '/faq/deep-watcher-values'
164-
// },
171+
}
172+
]
173+
},
174+
// {
175+
// text: 'Debugging',
176+
// items: [
177+
// {
178+
// text: `Why does my logging show an empty/missing value after I've loaded the data?`,
179+
// link: '/faq/logging-after-loading'
180+
// },
181+
// {
182+
// text: 'Why can I see my data in console logging, but if I try to access it I get undefined or an error?',
183+
// link: '/faq/logging-is-live'
184+
// }
185+
// ]
186+
// },
187+
// {
188+
// text: 'Common misunderstandings',
189+
// items: [
190+
// {
191+
// text: 'When to use reactive() and ref()?',
192+
// link: '/faq/reactive-ref'
193+
// },
194+
// {
195+
// text: 'Why are the new value and old value the same in my watcher?',
196+
// link: '/faq/deep-watcher-values'
197+
// }
198+
// ]
199+
// }
200+
{
201+
text: 'Common tooling problems',
202+
items: [
165203
// {
166204
// text: 'Why do my dynamic images not work?',
167205
// link: '/faq/dynamic-images'

0 commit comments

Comments
 (0)