Skip to content

Commit

Permalink
Revert "test"
Browse files Browse the repository at this point in the history
This reverts commit 2dccd49.
  • Loading branch information
PedroBailaAndrade committed Jan 8, 2024
1 parent eef5b19 commit 22fe4c2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions workspaces/cms-scripts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
AnnouncementsPost,
RoadmapDetails,
RoadmapPost,
getAnnouncements,
getPages,
getPosts,
getRoadmapPosts,
Expand Down Expand Up @@ -186,6 +187,7 @@ 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();

Expand Down Expand Up @@ -222,6 +224,13 @@ 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 });
}
Expand Down Expand Up @@ -270,4 +279,5 @@ const redirects = await yaml("_data/settings/redirects.yml");

await write(`workspaces/website/redirects.json`, redirects);
await createRoadmapDetails()
await createAnnouncementDetails()
await createSharedData()

0 comments on commit 22fe4c2

Please sign in to comment.