Skip to content

Commit 6dae4f2

Browse files
committed
feat: copy README.md to docs folder after fetching documents
1 parent 6a57651 commit 6dae4f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ async function fetchLatestDocuments(repositories: Array<Repository>) {
4545
})
4646
);
4747

48-
console.log("Documents fetched successfully!");
48+
fs.copyFileSync("README.md", `${docsPath}/README.md`);
49+
50+
console.log("Documents fetched and placed to the docs folder.");
4951
}
5052

5153
function findMarkdownFilesAndCopyToDocs(dir: string) {

0 commit comments

Comments
 (0)