File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Expand file tree Collapse file tree 3 files changed +11
-8
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
import type { RouteDefinition } from '@solidjs/router' ;
2
2
import { lazy } from 'solid-js' ;
3
+ import Docs from './pages/Docs' ;
4
+ import NotFound from './pages/NotFound' ;
3
5
4
6
export const routes : RouteDefinition [ ] = [
5
7
{
@@ -9,17 +11,18 @@ export const routes: RouteDefinition[] = [
9
11
{
10
12
path : [
11
13
'/docs' ,
12
- '/docs/Guide' ,
13
- '/docs/Guide/:category' ,
14
- '/docs/Guide/:category/:page' ,
15
- '/docs/Documentation' ,
16
- '/docs/Documentation/:name' ,
17
- '/docs/Documentation/:name/:version'
14
+ '/docs/guide' ,
15
+ '/docs/guide/:category' ,
16
+ '/docs/guide/:category/:page' ,
17
+ '/docs/' ,
18
+ '/docs/:pkg' ,
19
+ '/docs/:pkg/:version' ,
20
+ '/docs/:pkg/:version/:page'
18
21
] ,
19
- component : lazy ( ( ) => import ( './pages/ Docs' ) )
22
+ component : Docs
20
23
} ,
21
24
{
22
25
path : '*' ,
23
- component : lazy ( ( ) => import ( './pages/ NotFound' ) )
26
+ component : NotFound
24
27
}
25
28
] ;
You can’t perform that action at this time.
0 commit comments