1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-29 20:21:50 +02:00

chore: sync repo to database

This commit is contained in:
Arik Chakma
2025-08-20 13:57:24 +06:00
committed by Kamran Ahmed
parent 07277708eb
commit d70582411e
6 changed files with 284 additions and 7 deletions

View File

@@ -19,6 +19,7 @@ if (!roadmapSlug || roadmapSlug === '__default__') {
console.log(`🚀 Starting ${roadmapSlug}`);
export const allowedOfficialRoadmapTopicResourceType = [
'roadmap',
'official',
'opensource',
'article',
@@ -26,11 +27,12 @@ export const allowedOfficialRoadmapTopicResourceType = [
'podcast',
'video',
'book',
'feed',
] as const;
export type AllowedOfficialRoadmapTopicResourceType =
(typeof allowedOfficialRoadmapTopicResourceType)[number];
type OfficialRoadmapTopicResource = {
export type OfficialRoadmapTopicResource = {
_id?: string;
type: AllowedOfficialRoadmapTopicResourceType;
title: string;
@@ -97,8 +99,7 @@ for (const topic of allTopics) {
function prepareTopicContent(topic: OfficialRoadmapTopicContentDocument) {
const { description, resources = [] } = topic;
const content = `
${description}
const content = `${description}
Visit the following resources to learn more: