Roadmap to becoming a developer in 2022
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
862 B

export interface RoadmapFrontmatter {
id: string;
jsonUrl: string;
pdfUrl: string;
order: number;
featuredTitle: string;
featuredDescription: string;
title: string;
description: string;
hasTopics: boolean;
dimensions: {
width: number;
height: number;
};
seo: {
title: string;
description: string;
keywords: string[];
};
relatedRoadmaps: string[];
sitemap: {
priority: number;
changefreq: string;
};
tags: string[];
};
export async function getRoadmapIds() {
const roadmapFiles = await import.meta.glob<string>('/src/roadmaps/*/*.md', {
eager: true,
});
return Object.keys(roadmapFiles).map(filePath => {
const fileName = filePath.split('/').pop() || '';
return fileName.replace('.md', '');
});
}