computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
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
38 lines
862 B
2 years ago
|
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', '');
|
||
|
});
|
||
|
}
|