File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 11import type { RouteDefinition } from '@solidjs/router' ;
22import { lazy } from 'solid-js' ;
3+ import Docs from './pages/Docs' ;
4+ import NotFound from './pages/NotFound' ;
35
46export const routes : RouteDefinition [ ] = [
57 {
@@ -9,17 +11,18 @@ export const routes: RouteDefinition[] = [
911 {
1012 path : [
1113 '/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'
1821 ] ,
19- component : lazy ( ( ) => import ( './pages/ Docs' ) )
22+ component : Docs
2023 } ,
2124 {
2225 path : '*' ,
23- component : lazy ( ( ) => import ( './pages/ NotFound' ) )
26+ component : NotFound
2427 }
2528] ;
You can’t perform that action at this time.
0 commit comments