Skip to content

Commit 6a21ff3

Browse files
committed
docs(config): fix sidebar configuration format 🔧
1 parent 5d2821f commit 6a21ff3

1 file changed

Lines changed: 46 additions & 48 deletions

File tree

docs/.vitepress/config.ts

Lines changed: 46 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -9,54 +9,52 @@ export default defineConfig({
99
themeConfig: {
1010
logo: '/logo.svg',
1111
nav: [{ text: 'Home', link: '/' }],
12-
sidebar: {
13-
'/': [
14-
{
15-
text: 'Getting Started',
16-
items: [
17-
{ text: 'Installation', link: '/getting-started/installation' },
18-
{ text: 'Quick Start', link: '/getting-started/quick-start' },
19-
{ text: 'Custom Configuration', link: '/getting-started/custom-configuration' }
20-
]
21-
},
22-
{
23-
text: 'Core Concepts & Rules',
24-
items: [
25-
{ text: 'File-based Routing', link: '/core-concepts/file-based-routing' },
26-
{ text: 'Route Patterns', link: '/core-concepts/route-patterns' },
27-
{ text: 'HTTP Methods', link: '/core-concepts/http-methods' }
28-
]
29-
},
30-
{
31-
text: 'Middleware',
32-
items: [
33-
{ text: 'Global Middleware', link: '/middleware/global' },
34-
{ text: 'Route-Specific Middleware', link: '/middleware/route-specific' },
35-
{ text: 'CORS Middleware', link: '/middleware/cors' }
36-
]
37-
},
38-
{
39-
text: 'Send Response Utility',
40-
items: [
41-
{ text: 'JSON Format', link: '/response/json' },
42-
{ text: 'Text Format', link: '/response/text' },
43-
{ text: 'HTML Format', link: '/response/html' },
44-
{ text: 'Redirect', link: '/response/redirect' }
45-
]
46-
},
47-
{
48-
text: 'Static File Serving',
49-
items: [
50-
{ text: 'Basic Static Serving', link: '/static-file/basic' },
51-
{ text: 'Multiple Directories', link: '/static-file/multiple' }
52-
]
53-
},
54-
{
55-
text: 'Error Handling',
56-
items: [{ text: 'Object Details', link: '/error-handling/object-details' }]
57-
}
58-
]
59-
},
12+
sidebar: [
13+
{
14+
text: 'Getting Started',
15+
items: [
16+
{ text: 'Installation', link: '/getting-started/installation' },
17+
{ text: 'Quick Start', link: '/getting-started/quick-start' },
18+
{ text: 'Custom Configuration', link: '/getting-started/custom-configuration' }
19+
]
20+
},
21+
{
22+
text: 'Core Concepts',
23+
items: [
24+
{ text: 'File-based Routing', link: '/core-concepts/file-based-routing' },
25+
{ text: 'Route Patterns', link: '/core-concepts/route-patterns' },
26+
{ text: 'HTTP Methods', link: '/core-concepts/http-methods' }
27+
]
28+
},
29+
{
30+
text: 'Middleware',
31+
items: [
32+
{ text: 'Global Middleware', link: '/middleware/global' },
33+
{ text: 'Route-Specific Middleware', link: '/middleware/route-specific' },
34+
{ text: 'CORS Middleware', link: '/middleware/cors' }
35+
]
36+
},
37+
{
38+
text: 'Response Utilities',
39+
items: [
40+
{ text: 'JSON Format', link: '/response/json' },
41+
{ text: 'Text Format', link: '/response/text' },
42+
{ text: 'HTML Format', link: '/response/html' },
43+
{ text: 'Redirect', link: '/response/redirect' }
44+
]
45+
},
46+
{
47+
text: 'Static Files',
48+
items: [
49+
{ text: 'Basic Static Serving', link: '/static-file/basic' },
50+
{ text: 'Multiple Directories', link: '/static-file/multiple' }
51+
]
52+
},
53+
{
54+
text: 'Error Handling',
55+
items: [{ text: 'Object Details', link: '/error-handling/object-details' }]
56+
}
57+
],
6058
socialLinks: [{ icon: 'github', link: 'https://github.com/NeaByteLab/Deserve' }],
6159
search: {
6260
provider: 'local'

0 commit comments

Comments
 (0)