diff --git a/content/roadmaps.json b/content/roadmaps.json index 1c69506dd..28585a80c 100644 --- a/content/roadmaps.json +++ b/content/roadmaps.json @@ -155,7 +155,7 @@ "isTextHeavy": false, "isCommunity": false, "featured": true, - "contentPath": "/roadmaps/103-react/landscape.md", + "landingPath": "/roadmaps/103-react/landscape.md", "resourcesPath": "/roadmaps/103-react/resources.md", "versions": [ "latest", @@ -196,7 +196,7 @@ "isTextHeavy": false, "isCommunity": false, "featured": true, - "contentPath": "/roadmaps/104-angular/landscape.md", + "landingPath": "/roadmaps/104-angular/landscape.md", "resourcesPath": "/roadmaps/104-angular/resources.md", "versions": [ "latest", @@ -237,7 +237,7 @@ "isTextHeavy": true, "isCommunity": false, "featured": true, - "contentPath": "/roadmaps/105-android/landscape.md", + "landingPath": "/roadmaps/105-android/landscape.md", "resourcesPath": "/roadmaps/105-android/resources.md", "versions": [ "latest", @@ -278,7 +278,7 @@ "isCommunity": false, "featured": true, "resourcesPath": "/roadmaps/106-python/resources.md", - "contentPath": "/roadmaps/106-python/landscape.md", + "landingPath": "/roadmaps/106-python/landscape.md", "pdfUrl": "https://kamranahmedse.gumroad.com/l/python-roadmap", "versions": [ "latest" @@ -327,7 +327,7 @@ "isCommunity": false, "isUpcoming": false, "featured": true, - "contentPath": "/roadmaps/107-golang/landscape.md", + "landingPath": "/roadmaps/107-golang/landscape.md", "resourcesPath": "/roadmaps/107-golang/resources.md", "pdfUrl": "https://kamranahmedse.gumroad.com/l/go-roadmap", "versions": [ @@ -377,7 +377,7 @@ "isCommunity": false, "isUpcoming": false, "featured": true, - "contentPath": "/roadmaps/108-java/landscape.md", + "landingPath": "/roadmaps/108-java/landscape.md", "resourcesPath": "/roadmaps/108-java/resources.md", "versions": [ "latest", @@ -421,7 +421,7 @@ "description": "Step by step guide to becoming a modern PostgreSQL DB Administrator in 2021", "featuredTitle": "DBA", "featuredDescription": "Step by step guide to become a PostgreSQL DBA in 2021", - "contentPath": "/roadmaps/109-postgresql-dba/landscape.md", + "landingPath": "/roadmaps/109-postgresql-dba/landscape.md", "resourcesPath": "/roadmaps/109-postgresql-dba/resources.md", "author": { "name": "Alexey Lesovsky", @@ -460,7 +460,7 @@ "isCommunity": false, "isUpcoming": true, "featured": true, - "contentPath": "/roadmaps/110-aws/landscape.md", + "landingPath": "/roadmaps/110-aws/landscape.md", "resourcesPath": "/roadmaps/110-aws/resources.md", "versions": [ "latest", @@ -499,7 +499,7 @@ "featuredDescription": "Step by step guide to becoming a modern QA Engineer in 2021", "isUpcoming": true, "featured": true, - "contentPath": "/roadmaps/111-qa/landscape.md", + "landingPath": "/roadmaps/111-qa/landscape.md", "resourcesPath": "/roadmaps/111-qa/resources.md", "author": { "name": "Anas Fitiani", diff --git a/content/roadmaps/103-react/meta.json b/content/roadmaps/103-react/meta.json index 4d5e28212..c64f68ed3 100644 --- a/content/roadmaps/103-react/meta.json +++ b/content/roadmaps/103-react/meta.json @@ -23,7 +23,7 @@ "isTextHeavy": false, "isCommunity": false, "featured": true, - "contentPath": "./landscape.md", + "landingPath": "./landscape.md", "resourcesPath": "./resources.md", "versions": [ "latest", diff --git a/content/roadmaps/104-angular/meta.json b/content/roadmaps/104-angular/meta.json index 2c3caa5f2..28742b30d 100644 --- a/content/roadmaps/104-angular/meta.json +++ b/content/roadmaps/104-angular/meta.json @@ -23,7 +23,7 @@ "isTextHeavy": false, "isCommunity": false, "featured": true, - "contentPath": "./landscape.md", + "landingPath": "./landscape.md", "resourcesPath": "./resources.md", "versions": [ "latest", diff --git a/content/roadmaps/105-android/meta.json b/content/roadmaps/105-android/meta.json index 4392ccc42..32e041831 100644 --- a/content/roadmaps/105-android/meta.json +++ b/content/roadmaps/105-android/meta.json @@ -23,7 +23,7 @@ "isTextHeavy": true, "isCommunity": false, "featured": true, - "contentPath": "./landscape.md", + "landingPath": "./landscape.md", "resourcesPath": "./resources.md", "versions": [ "latest", diff --git a/content/roadmaps/106-python/meta.json b/content/roadmaps/106-python/meta.json index f8c7e3268..960c8779b 100644 --- a/content/roadmaps/106-python/meta.json +++ b/content/roadmaps/106-python/meta.json @@ -24,7 +24,7 @@ "isCommunity": false, "featured": true, "resourcesPath": "./resources.md", - "contentPath": "./landscape.md", + "landingPath": "./landscape.md", "pdfUrl": "https://kamranahmedse.gumroad.com/l/python-roadmap", "versions": [ "latest" diff --git a/content/roadmaps/107-golang/meta.json b/content/roadmaps/107-golang/meta.json index 3d9d3cb83..07598618e 100644 --- a/content/roadmaps/107-golang/meta.json +++ b/content/roadmaps/107-golang/meta.json @@ -34,7 +34,7 @@ "isCommunity": false, "isUpcoming": false, "featured": true, - "contentPath": "./landscape.md", + "landingPath": "./landscape.md", "resourcesPath": "./resources.md", "pdfUrl": "https://kamranahmedse.gumroad.com/l/go-roadmap", "versions": [ diff --git a/content/roadmaps/108-java/meta.json b/content/roadmaps/108-java/meta.json index dfe3707e3..c0f88323a 100644 --- a/content/roadmaps/108-java/meta.json +++ b/content/roadmaps/108-java/meta.json @@ -33,7 +33,7 @@ "isCommunity": false, "isUpcoming": false, "featured": true, - "contentPath": "./landscape.md", + "landingPath": "./landscape.md", "resourcesPath": "./resources.md", "versions": [ "latest", diff --git a/content/roadmaps/109-postgresql-dba/meta.json b/content/roadmaps/109-postgresql-dba/meta.json index 7920ccfe1..26be38bbf 100644 --- a/content/roadmaps/109-postgresql-dba/meta.json +++ b/content/roadmaps/109-postgresql-dba/meta.json @@ -27,7 +27,7 @@ "description": "Step by step guide to becoming a modern PostgreSQL DB Administrator in 2021", "featuredTitle": "DBA", "featuredDescription": "Step by step guide to become a PostgreSQL DBA in 2021", - "contentPath": "./landscape.md", + "landingPath": "./landscape.md", "resourcesPath": "./resources.md", "author": { "name": "Alexey Lesovsky", diff --git a/content/roadmaps/110-aws/meta.json b/content/roadmaps/110-aws/meta.json index adb10317e..a9734d6da 100644 --- a/content/roadmaps/110-aws/meta.json +++ b/content/roadmaps/110-aws/meta.json @@ -22,7 +22,7 @@ "isCommunity": false, "isUpcoming": true, "featured": true, - "contentPath": "./landscape.md", + "landingPath": "./landscape.md", "resourcesPath": "./resources.md", "versions": [ "latest", diff --git a/content/roadmaps/111-qa/meta.json b/content/roadmaps/111-qa/meta.json index 6874c6f28..492b716d8 100644 --- a/content/roadmaps/111-qa/meta.json +++ b/content/roadmaps/111-qa/meta.json @@ -23,7 +23,7 @@ "featuredDescription": "Step by step guide to becoming a modern QA Engineer in 2021", "isUpcoming": true, "featured": true, - "contentPath": "./landscape.md", + "landingPath": "./landscape.md", "resourcesPath": "./resources.md", "author": { "name": "Anas Fitiani", diff --git a/lib/roadmap.ts b/lib/roadmap.ts index 2891a4364..97fe58017 100644 --- a/lib/roadmap.ts +++ b/lib/roadmap.ts @@ -16,7 +16,7 @@ export type RoadmapType = { }, featured: boolean, imagePath?: string, - contentPath?: string; + landingPath?: string; resourcesPath: string; metaPath: string; isCommunity: boolean; diff --git a/pages/[roadmap]/index.tsx b/pages/[roadmap]/index.tsx index e659f41be..7c12bef77 100644 --- a/pages/[roadmap]/index.tsx +++ b/pages/[roadmap]/index.tsx @@ -33,18 +33,18 @@ function ImageRoadmap(props: RoadmapProps) { function TextualRoadmap(props: RoadmapProps) { const { roadmap } = props; - if (!roadmap.contentPath) { + if (!roadmap.landingPath) { return null; } // Remove trailing slashes - const normalizedPath = roadmap.contentPath.replace(/^\//, ''); - const RoadmapContent = require(`../../content/${normalizedPath}`).default; + const normalizedPath = roadmap.landingPath.replace(/^\//, ''); + const LandingContent = require(`../../content/${normalizedPath}`).default; return ( - + ); diff --git a/public/sitemap.xml b/public/sitemap.xml index c2bca3a8f..b66facb43 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -3,73 +3,73 @@ https://roadmap.sh/frontend monthly - 2021-09-05T18:22:27.708Z + 2021-11-27T18:10:50.401Z 1.0 https://roadmap.sh/backend monthly - 2021-09-05T18:22:27.708Z + 2021-11-27T18:10:50.403Z 1.0 https://roadmap.sh/devops monthly - 2021-09-05T18:22:27.709Z + 2021-11-27T18:10:50.403Z 1.0 https://roadmap.sh/react monthly - 2021-09-05T18:22:27.709Z + 2021-12-03T13:12:58.607Z 1.0 https://roadmap.sh/angular monthly - 2021-09-29T15:27:47.590Z + 2021-12-03T13:12:58.593Z 1.0 https://roadmap.sh/android monthly - 2021-09-30T21:14:34.276Z + 2021-12-03T13:12:58.614Z 1.0 https://roadmap.sh/python monthly - 2021-09-30T21:14:34.274Z + 2021-12-03T13:12:58.595Z 1.0 https://roadmap.sh/golang monthly - 2021-09-30T21:20:55.096Z + 2021-12-03T13:12:58.591Z 1.0 https://roadmap.sh/java monthly - 2021-10-24T10:30:18.378Z + 2021-12-03T13:12:58.610Z 1.0 https://roadmap.sh/postgresql-dba monthly - 2021-09-30T21:14:34.272Z + 2021-12-03T13:12:58.599Z 1.0 https://roadmap.sh/aws monthly - 2021-09-22T12:34:39.639Z + 2021-12-03T13:12:58.597Z 1.0 https://roadmap.sh/qa monthly - 2021-11-03T19:30:14.028Z + 2021-12-03T13:12:58.589Z 1.0 @@ -255,7 +255,7 @@ https://roadmap.sh/ monthly - 2021-11-22T16:05:46.441Z + 2021-11-27T11:45:44.569Z 1.0 @@ -273,7 +273,7 @@ https://roadmap.sh/thanks monthly - 2021-11-19T12:59:26.864Z + 2021-11-30T15:46:40.893Z 0.5 diff --git a/scripts/roadmaps-meta.js b/scripts/roadmaps-meta.js index 11344862a..e110825b0 100644 --- a/scripts/roadmaps-meta.js +++ b/scripts/roadmaps-meta.js @@ -15,9 +15,9 @@ 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 - let contentPath = roadmapMeta.contentPath; - if (contentPath) { - contentPath = path.join(roadmapDir.replace(STORAGE_PATH, ''), roadmapMeta.contentPath); + let landingPath = roadmapMeta.landingPath; + if (landingPath) { + landingPath = path.join(roadmapDir.replace(STORAGE_PATH, ''), roadmapMeta.landingPath); } let resourcesPath = roadmapMeta.resourcesPath; @@ -36,7 +36,7 @@ const roadmapsMeta = roadmapDirs.reduce((metaAcc, roadmapDirName) => { { ...roadmapMeta, id: roadmapSlug, - contentPath: contentPath, + landingPath: landingPath, resourcesPath: resourcesPath, metaPath: metaPath, isUpcoming: roadmapMeta.isUpcoming || false