From 31595b49cf92687e305f6cf02065b34d35c5fe52 Mon Sep 17 00:00:00 2001 From: rektdeckard Date: Sat, 28 Dec 2024 23:47:06 -0700 Subject: [PATCH] chore(ci): allow synced repos to not have sections --- scripts/sync-docs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sync-docs.ts b/scripts/sync-docs.ts index 9fe84ee..5bfb926 100644 --- a/scripts/sync-docs.ts +++ b/scripts/sync-docs.ts @@ -15,7 +15,7 @@ const SYNC_SECTIONS = ["LINKS"]; for (const section of SYNC_SECTIONS) { const sectionContent = extractSection(readmeContent, section); - if (!sectionContent) throw new Error(`Section ${section} not found in README.md`); + if (!sectionContent) continue; const targetReadmeContent = fs.readFileSync(targetReadmePath, "utf8"); const updatedDocsContent = updateSection(targetReadmeContent, section, sectionContent);