Skip to content

Commit f6d87be

Browse files
committed
docs(sidebar): group pages by section for better UX
1 parent c316dcc commit f6d87be

File tree

1 file changed

+43
-56
lines changed

1 file changed

+43
-56
lines changed

docs/.vitepress/config.ts

Lines changed: 43 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -46,62 +46,49 @@ export default defineConfig({
4646

4747
sidebar: {
4848
'/': [{
49-
text: 'Quickstart',
50-
link: '/quickstart',
51-
}, {
52-
text: 'Installation',
53-
link: '/installation',
54-
}, {
55-
text: 'Command line',
56-
link: '/command-line'
57-
}, {
58-
text: 'Configuration',
59-
link: '/configuration'
60-
}, {
61-
text: 'Test files',
62-
link: '/test-files',
63-
}, {
64-
text: 'Data providers',
65-
link: '/data-providers',
66-
}, {
67-
text: 'Test doubles',
68-
link: '/test-doubles'
69-
}, {
70-
text: 'Assertions',
71-
link: '/assertions'
72-
}, {
73-
text: 'Snapshots',
74-
link: '/snapshots'
75-
}, {
76-
text: 'Skipping/incomplete',
77-
link: '/skipping-incomplete'
78-
}, {
79-
text: 'Standalone',
80-
link: '/standalone'
81-
}, {
82-
text: 'Benchmarks',
83-
link: '/benchmarks'
84-
}, {
85-
text: 'Coverage',
86-
link: '/coverage'
87-
}, {
88-
text: 'Globals',
89-
link: '/globals'
90-
}, {
91-
text: 'Custom asserts',
92-
link: '/custom-asserts'
93-
}, {
94-
text: 'Common patterns',
95-
link: '/common-patterns',
96-
}, {
97-
text: 'Examples',
98-
link: '/examples'
99-
}, {
100-
text: 'Project overview',
101-
link: '/project-overview',
102-
}, {
103-
text: 'Support',
104-
link: '/support',
49+
text: 'Getting Started',
50+
collapsed: false,
51+
items: [
52+
{ text: 'Quickstart', link: '/quickstart' },
53+
{ text: 'Installation', link: '/installation' },
54+
],
55+
}, {
56+
text: 'Usage',
57+
collapsed: false,
58+
items: [
59+
{ text: 'Command line', link: '/command-line' },
60+
{ text: 'Configuration', link: '/configuration' },
61+
{ text: 'Test files', link: '/test-files' },
62+
{ text: 'Globals', link: '/globals' },
63+
],
64+
}, {
65+
text: 'Writing Tests',
66+
collapsed: false,
67+
items: [
68+
{ text: 'Assertions', link: '/assertions' },
69+
{ text: 'Custom asserts', link: '/custom-asserts' },
70+
{ text: 'Data providers', link: '/data-providers' },
71+
{ text: 'Test doubles', link: '/test-doubles' },
72+
{ text: 'Snapshots', link: '/snapshots' },
73+
{ text: 'Skipping/incomplete', link: '/skipping-incomplete' },
74+
],
75+
}, {
76+
text: 'Advanced',
77+
collapsed: true,
78+
items: [
79+
{ text: 'Coverage', link: '/coverage' },
80+
{ text: 'Benchmarks', link: '/benchmarks' },
81+
{ text: 'Standalone', link: '/standalone' },
82+
{ text: 'Common patterns', link: '/common-patterns' },
83+
],
84+
}, {
85+
text: 'Reference',
86+
collapsed: true,
87+
items: [
88+
{ text: 'Examples', link: '/examples' },
89+
{ text: 'Project overview', link: '/project-overview' },
90+
{ text: 'Support', link: '/support' },
91+
],
10592
}],
10693
'/blog/': []
10794
},

0 commit comments

Comments
 (0)