File tree Expand file tree Collapse file tree 3 files changed +9
-92
lines changed Expand file tree Collapse file tree 3 files changed +9
-92
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ export const content = import.meta.glob<Result<typeof FrontmatterSchema>>(
10
10
{ eager : true } ,
11
11
) ;
12
12
13
+ const demos = import . meta. glob < Result < typeof FrontmatterSchema > > (
14
+ `@/server/demo/*/index.md` ,
15
+ { eager : true } ,
16
+ ) ;
17
+
13
18
export const getSlugs = ( ) => {
14
19
return Object . keys ( content )
15
20
. map ( ( path ) => {
@@ -27,13 +32,13 @@ const getMd = (result: Result<typeof FrontmatterSchema>) => {
27
32
} ${ result . article } `;
28
33
} ;
29
34
30
- export const llms = new Get ( "/llms.txt" , ( c ) =>
35
+ export const llms = new Get ( "/llms.txt" , ( c ) => {
31
36
c . text (
32
- [ homeResult , ...Object . values ( content ) ]
37
+ [ homeResult , ...Object . values ( content ) , ... Object . values ( demos ) ]
33
38
. map ( ( result ) => getMd ( result ) )
34
39
. join ( "\n" ) ,
35
- ) ,
36
- ) ;
40
+ ) ;
41
+ } ) ;
37
42
38
43
export const page = new Get ( "/:slug" , ( c ) => {
39
44
let md = false ;
You can’t perform that action at this time.
0 commit comments