Add resources pages and new guide

This commit is contained in:
Kamran Ahmed committed 2020-02-29 17:49:04 +04:00
1 parent 727e191767
commit 7eaa0b002e
48 files changed
+264 -529

No files matched your search

+2
View File
@@ -17,6 +17,7 @@ const roadmapsMeta = roadmapDirs.reduce((metaAcc, roadmapDirName) => {
// We can't use the absolute path in the build e.g. ~/Users/user/where-build-is-running/content
// So, we remove it and use the path relative to content directory
const roadmapLandingFilePath = path.join(roadmapDir.replace(STORAGE_PATH, ''), roadmapMeta.path);
const resourcesPath = path.join(roadmapDir.replace(STORAGE_PATH, ''), roadmapMeta.resources);
const contributors = exec(`git log --pretty=format:"%an%x09" ${roadmapDir} | uniq`)
.toString()
@@ -77,6 +78,7 @@ const roadmapsMeta = roadmapDirs.reduce((metaAcc, roadmapDirName) => {
contributorsUrl: `/${roadmapSlug}/contributors`,
url: `/${roadmapSlug}`,
path: roadmapLandingFilePath,
resources: resourcesPath,
sidebar,
},
];