@@ -7,7 +7,6 @@ import { execSync, spawnSync } from "child_process";
77import { visualizeTextDiff } from "./text-diff-visualizer" ;
88import { convert } from "html-to-text" ;
99
10-
1110const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
1211
1312const GITHUB_TOKEN = process . env . GITHUB_TOKEN ;
@@ -90,7 +89,7 @@ async function fetchPageContent(
9089 html : contentElement . innerHTML ,
9190 title : headingElement ?. textContent ?. trim ( ) || "" ,
9291 url,
93- innerText : ( contentElement as HTMLDivElement ) . innerText
92+ innerText : ( contentElement as HTMLDivElement ) . innerText ,
9493 } ;
9594}
9695
@@ -103,7 +102,7 @@ async function convertToMDX(
103102 "{{LLM_DOCS}}" ,
104103 await readFile (
105104 __dirname +
106- "/../src/content/docs/development/guide/component-docs-for-llm.mdx" ,
105+ "/../src/content/docs/development/guide/component-docs-for-llm.mdx" ,
107106 "utf8"
108107 )
109108 ) ;
@@ -456,11 +455,11 @@ async function main() {
456455 if ( res . status !== 0 ) {
457456 throw new Error (
458457 "构建失败,可能生成的MDX有问题:" +
459- res . stderr ?. toString ( ) +
460- res . stdout ?. toString ( ) +
461- res . error ?. toString ( ) +
462- " exit code " +
463- res . status
458+ res . stderr ?. toString ( ) +
459+ res . stdout ?. toString ( ) +
460+ res . error ?. toString ( ) +
461+ " exit code " +
462+ res . status
464463 ) ;
465464 }
466465
0 commit comments