diff --git a/components/detailed-roadmap/index.js b/components/detailed-roadmap/index.js
index 52a212c7d..1e8255610 100644
--- a/components/detailed-roadmap/index.js
+++ b/components/detailed-roadmap/index.js
@@ -27,8 +27,12 @@ const DetailedRoadmap = ({ roadmap }) => {
{ groupTitle }
{ sidebar[groupTitle].map(page => {
+ const isActivePage = page.url === currentPage.url;
+ // e.g. /frontend should mark `/frontend/summary` as active
+ const isSummaryPage = page.url === `${currentPage.url}/summary`;
+
return (
- -
+
-
{ page.title }
diff --git a/scripts/roadmaps-meta.js b/scripts/roadmaps-meta.js
index 17782f95a..1c88fdd40 100644
--- a/scripts/roadmaps-meta.js
+++ b/scripts/roadmaps-meta.js
@@ -14,6 +14,10 @@ const roadmapsMeta = roadmapDirs.reduce((metaAcc, roadmapDirName) => {
const roadmapDir = path.join(ROADMAPS_PATH, roadmapDirName);
const roadmapMeta = require(path.join(roadmapDir, 'meta.json'));
+ // We can't use the absolute path in the build e.g. ~/Users/user/where-build-is-running/storage
+ // So, we remove it and use the path relative to storage directory
+ const summaryFilePath = path.join(roadmapDir.replace(STORAGE_PATH, ''), '/landscape/0-Summary.md')
+
const contributors = exec(`git log --pretty=format:"%an%x09" ${roadmapDir} | uniq`)
.toString()
.split('\n')
@@ -72,7 +76,7 @@ const roadmapsMeta = roadmapDirs.reduce((metaAcc, roadmapDirName) => {
contributorsCount: contributorNames.length,
contributorsUrl: `/${roadmapSlug}/contributors`,
url: `/${roadmapSlug}`,
- path: path.join(roadmapDir.replace(STORAGE_PATH, ''), '/summary.md'),
+ path: summaryFilePath,
sidebar,
},
];
diff --git a/static/sitemap.xml b/static/sitemap.xml
index 9ad8ebd94..b2098cf1a 100644
--- a/static/sitemap.xml
+++ b/static/sitemap.xml
@@ -6,6 +6,18 @@
2019-11-30T10:14:37.750Z
1.0
+
+ https://roadmap.sh/frontend/contributors
+ monthly
+ 2019-12-01T11:38:19.737Z
+ 1.0
+
+
+ https://roadmap.sh/frontend/summary
+ monthly
+ 2019-11-30T10:14:37.750Z
+ 1.0
+
https://roadmap.sh/frontend/junior
monthly
@@ -78,6 +90,12 @@
2019-11-30T10:14:31.255Z
1.0
+
+ https://roadmap.sh/backend/summary
+ monthly
+ 2019-11-30T10:14:31.255Z
+ 1.0
+
https://roadmap.sh/backend/junior
monthly
@@ -102,6 +120,12 @@
2019-11-30T10:24:46.555Z
1.0
+
+ https://roadmap.sh/devops/summary
+ monthly
+ 2019-11-30T10:24:46.555Z
+ 1.0
+
https://roadmap.sh/devops/junior
monthly
@@ -126,12 +150,24 @@
2019-11-27T20:14:37.663Z
1.0
+
+ https://roadmap.sh/fullstack/summary
+ monthly
+ 2019-11-27T20:14:37.663Z
+ 1.0
+
https://roadmap.sh/qa
monthly
2019-11-27T20:14:50.558Z
1.0
+
+ https://roadmap.sh/qa/summary
+ monthly
+ 2019-11-27T20:14:50.558Z
+ 1.0
+
https://roadmap.sh/guides/design-patterns-for-humans
monthly
diff --git a/storage/roadmaps.json b/storage/roadmaps.json
index e87449412..f83c36004 100644
--- a/storage/roadmaps.json
+++ b/storage/roadmaps.json
@@ -17,7 +17,7 @@
"contributorsCount": 1,
"contributorsUrl": "/frontend/contributors",
"url": "/frontend",
- "path": "/roadmaps/1-frontend/summary.md",
+ "path": "/roadmaps/1-frontend/landscape/0-Summary.md",
"sidebar": {
"_others": [
{
@@ -27,6 +27,11 @@
}
],
"landscape": [
+ {
+ "url": "/frontend/summary",
+ "title": "Summary",
+ "path": "/roadmaps/1-frontend/landscape/0-Summary.md"
+ },
{
"url": "/frontend/junior",
"title": "Junior",
@@ -99,9 +104,14 @@
"contributorsCount": 1,
"contributorsUrl": "/backend/contributors",
"url": "/backend",
- "path": "/roadmaps/2-backend/summary.md",
+ "path": "/roadmaps/2-backend/landscape/0-Summary.md",
"sidebar": {
"landscape": [
+ {
+ "url": "/backend/summary",
+ "title": "Summary",
+ "path": "/roadmaps/2-backend/landscape/0-Summary.md"
+ },
{
"url": "/backend/junior",
"title": "Junior",
@@ -137,9 +147,14 @@
"contributorsCount": 1,
"contributorsUrl": "/devops/contributors",
"url": "/devops",
- "path": "/roadmaps/3-devops/summary.md",
+ "path": "/roadmaps/3-devops/landscape/0-Summary.md",
"sidebar": {
"landscape": [
+ {
+ "url": "/devops/summary",
+ "title": "Summary",
+ "path": "/roadmaps/3-devops/landscape/0-Summary.md"
+ },
{
"url": "/devops/junior",
"title": "Junior",
@@ -170,8 +185,16 @@
"contributorsCount": 1,
"contributorsUrl": "/fullstack/contributors",
"url": "/fullstack",
- "path": "/roadmaps/4-fullstack/summary.md",
- "sidebar": {}
+ "path": "/roadmaps/4-fullstack/landscape/0-Summary.md",
+ "sidebar": {
+ "landscape": [
+ {
+ "url": "/fullstack/summary",
+ "title": "Summary",
+ "path": "/roadmaps/4-fullstack/landscape/0-Summary.md"
+ }
+ ]
+ }
},
{
"title": "QA Engineer",
@@ -185,7 +208,15 @@
"contributorsCount": 1,
"contributorsUrl": "/qa/contributors",
"url": "/qa",
- "path": "/roadmaps/5-qa/summary.md",
- "sidebar": {}
+ "path": "/roadmaps/5-qa/landscape/0-Summary.md",
+ "sidebar": {
+ "landscape": [
+ {
+ "url": "/qa/summary",
+ "title": "Summary",
+ "path": "/roadmaps/5-qa/landscape/0-Summary.md"
+ }
+ ]
+ }
}
]
\ No newline at end of file
diff --git a/storage/roadmaps/1-frontend/summary.md b/storage/roadmaps/1-frontend/landscape/0-Summary.md
similarity index 100%
rename from storage/roadmaps/1-frontend/summary.md
rename to storage/roadmaps/1-frontend/landscape/0-Summary.md
diff --git a/storage/roadmaps/2-backend/summary.md b/storage/roadmaps/2-backend/landscape/0-Summary.md
similarity index 100%
rename from storage/roadmaps/2-backend/summary.md
rename to storage/roadmaps/2-backend/landscape/0-Summary.md
diff --git a/storage/roadmaps/3-devops/summary.md b/storage/roadmaps/3-devops/landscape/0-Summary.md
similarity index 100%
rename from storage/roadmaps/3-devops/summary.md
rename to storage/roadmaps/3-devops/landscape/0-Summary.md
diff --git a/storage/roadmaps/4-fullstack/summary.md b/storage/roadmaps/4-fullstack/landscape/0-Summary.md
similarity index 100%
rename from storage/roadmaps/4-fullstack/summary.md
rename to storage/roadmaps/4-fullstack/landscape/0-Summary.md
diff --git a/storage/roadmaps/5-qa/summary.md b/storage/roadmaps/5-qa/landscape/0-Summary.md
similarity index 100%
rename from storage/roadmaps/5-qa/summary.md
rename to storage/roadmaps/5-qa/landscape/0-Summary.md