From ea3634bccdec6409f06262252a0c1f6ead75c5f9 Mon Sep 17 00:00:00 2001 From: PedroBailaAndrade Date: Mon, 8 Jan 2024 15:11:14 +0000 Subject: [PATCH] test Revert "test" This reverts commit 2dccd494237fc571b2f60f724b536bb11164ba5b. Revert "Revert "test"" This reverts commit 22fe4c23055859b62fbbf2fc39067f0a2053a948. --- workspaces/cms-scripts/src/index.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/workspaces/cms-scripts/src/index.ts b/workspaces/cms-scripts/src/index.ts index 6f07c48d3a7..9a88145f77e 100644 --- a/workspaces/cms-scripts/src/index.ts +++ b/workspaces/cms-scripts/src/index.ts @@ -11,7 +11,6 @@ import { AnnouncementsPost, RoadmapDetails, RoadmapPost, - getAnnouncements, getPages, getPosts, getRoadmapPosts, @@ -187,7 +186,6 @@ for (const simpleFile of simpleFiles) { const posts = await getPosts(); const roadmapPosts = await getRoadmapPosts(); -const announcements = await getAnnouncements(); const pages = await getPages(); const tutorials = await getTutorials(); @@ -224,13 +222,6 @@ for (const data of roadmapPosts.filenameMap.values()) { ); } -for (const data of announcements.filenameMap.values()) { - await write( - `public/data/announcements/${data.locale}/${data.slug}.json`, - data -); -} - for (const locale of locales) { await fs.mkdir(`public/data/pages/${locale}`, { recursive: true }); } @@ -279,5 +270,4 @@ const redirects = await yaml("_data/settings/redirects.yml"); await write(`workspaces/website/redirects.json`, redirects); await createRoadmapDetails() -await createAnnouncementDetails() await createSharedData()