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
781 B

export interface RoadmapFrontmatter {
2 years ago
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;
2 years ago
keywords: string[];
};
relatedRoadmaps: string[];
sitemap: {
priority: number;
changefreq: string;
};
tags: string[];
}
export async function getRoadmapIds() {
2 years ago
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", "");
});
}