Skip to content

Commit 257898c

Browse files
committed
fix: 方法执行顺序调整
1 parent 5408490 commit 257898c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

build.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ ${match ? `sidebar_label: "${match[1]}"` : ""}
183183
`
184184
content = textToAdd + content;
185185
fs.writeFileSync(filename, content, 'utf8');
186-
// console.log(textToAdd);
187186
}
188187
}
189188
}
@@ -266,9 +265,13 @@ const main = async () => {
266265
// Delete destinationPath
267266
// await fsextra.remove(folder)
268267
await generate.main();
268+
269+
// 兼容
270+
await compatible();
271+
269272
// 遍历文档,生成指定metadata。
270273
fromDir('./docs', '.md', meta);
271-
await compatible();
274+
272275
// Build project
273276
await buildProject();
274277

0 commit comments

Comments
 (0)