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" ;
77
88type PathPart = {
99 sort : number ;
@@ -73,7 +73,7 @@ async function writePage(
7373 ) ;
7474
7575 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. ' } ` ;
7777 await fs . mkdir ( dirPath , { recursive : true } ) ;
7878 await fs . writeFile ( `${ pagePath } .md` , pageContent ) ;
7979 return ;
You can’t perform that action at this time.
0 commit comments