File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- import { resolve } from 'path' ;
2
- import fs from 'node:fs/promises' ;
3
- import { stringifyYAML } from ' confbox' ;
4
- import formatTitle from '@directus/format-title' ;
5
- import { consola } from 'consola' ;
6
- import { db , readItems } from ' ../../utils/directus' ;
1
+ import fs from "node:fs/promises" ;
2
+ import formatTitle from "@directus/format-title" ;
3
+ import { stringifyYAML } from " confbox" ;
4
+ import { consola } from "consola" ;
5
+ import { resolve } from "path" ;
6
+ import { db , readItems } from " ../../utils/directus" ;
7
7
8
8
type PathPart = {
9
9
sort : number ;
@@ -73,7 +73,7 @@ async function writePage(
73
73
) ;
74
74
75
75
const pageConfig = stringifyYAML ( config ) ;
76
- const pageContent = `---\n${ pageConfig } \n---\n${ content || 'STUB ' } ` ;
76
+ const pageContent = `---\n${ pageConfig } \n---\n${ content || 'Explore our resources and powerful data engine to build your projects confidently. ' } ` ;
77
77
await fs . mkdir ( dirPath , { recursive : true } ) ;
78
78
await fs . writeFile ( `${ pagePath } .md` , pageContent ) ;
79
79
return ;
You can’t perform that action at this time.
0 commit comments