Make golang roadmap interactive

pull/1531/head
Kamran Ahmed 2 years ago
parent e9c902d01e
commit f9e4678ed8
  1. 2
      content/roadmaps.json
  2. 6
      content/roadmaps/108-golang/meta.json
  3. 2
      lib/roadmap.ts
  4. 4
      pages/[roadmap]/interactive.tsx
  5. 7052
      public/project/golang.json
  6. 4
      public/sitemap.xml

@ -412,7 +412,6 @@
"isUpcoming": false, "isUpcoming": false,
"featured": true, "featured": true,
"jsonUrl": "/project/golang.json", "jsonUrl": "/project/golang.json",
"landingPath": "/roadmaps/108-golang/landscape.md",
"resourcesPath": "/roadmaps/108-golang/resources.md", "resourcesPath": "/roadmaps/108-golang/resources.md",
"pdfUrl": "/pdfs/go.pdf", "pdfUrl": "/pdfs/go.pdf",
"versions": [ "versions": [
@ -424,6 +423,7 @@
"name": "Kamran Ahmed", "name": "Kamran Ahmed",
"url": "https://twitter.com/kamranahmedse" "url": "https://twitter.com/kamranahmedse"
}, },
"contentPathsFilePath": "/roadmaps/108-golang/content-paths.json",
"id": "golang", "id": "golang",
"metaPath": "/roadmaps/108-golang/meta.json" "metaPath": "/roadmaps/108-golang/meta.json"
}, },

@ -36,7 +36,6 @@
"isUpcoming": false, "isUpcoming": false,
"featured": true, "featured": true,
"jsonUrl": "/project/golang.json", "jsonUrl": "/project/golang.json",
"landingPath": "./landscape.md",
"resourcesPath": "./resources.md", "resourcesPath": "./resources.md",
"pdfUrl": "/pdfs/go.pdf", "pdfUrl": "/pdfs/go.pdf",
"versions": [ "versions": [
@ -47,5 +46,6 @@
"author": { "author": {
"name": "Kamran Ahmed", "name": "Kamran Ahmed",
"url": "https://twitter.com/kamranahmedse" "url": "https://twitter.com/kamranahmedse"
} },
} "contentPathsFilePath": "./content-paths.json"
}

@ -43,5 +43,5 @@ export function getFeaturedRoadmaps(): RoadmapType[] {
} }
export function isInteractiveRoadmap(id: string): boolean { export function isInteractiveRoadmap(id: string): boolean {
return ['frontend', 'backend', 'devops', 'react', 'vue', 'python', 'java', 'blockchain'].includes(id); return ['frontend', 'backend', 'devops', 'react', 'vue', 'python', 'java', 'blockchain', 'golang'].includes(id);
} }

@ -137,6 +137,10 @@ export function InteractiveRoadmapRenderer(props: RoadmapProps) {
minHeight = ['780px', '1120px', '1770px', '2235px', '2235px', '2235px']; minHeight = ['780px', '1120px', '1770px', '2235px', '2235px', '2235px'];
} }
if (roadmap.id === 'golang') {
minHeight = ['590px', '1201px', '1201px', '1625px', '1625px', '1625px'];
}
return ( return (
<Container maxW={'container.lg'} position="relative" minHeight={minHeight}> <Container maxW={'container.lg'} position="relative" minHeight={minHeight}>
{(isLoading || isRendering) && <RoadmapLoader />} {(isLoading || isRendering) && <RoadmapLoader />}

File diff suppressed because it is too large Load Diff

@ -51,7 +51,7 @@
<url> <url>
<loc>https://roadmap.sh/golang</loc> <loc>https://roadmap.sh/golang</loc>
<changefreq>monthly</changefreq> <changefreq>monthly</changefreq>
<lastmod>2022-08-08T14:33:53.389Z</lastmod> <lastmod>2022-08-16T14:31:54.535Z</lastmod>
<priority>1.0</priority> <priority>1.0</priority>
</url> </url>
<url> <url>
@ -261,7 +261,7 @@
<url> <url>
<loc>https://roadmap.sh/</loc> <loc>https://roadmap.sh/</loc>
<changefreq>monthly</changefreq> <changefreq>monthly</changefreq>
<lastmod>2022-08-16T12:05:01.833Z</lastmod> <lastmod>2022-08-16T13:40:48.255Z</lastmod>
<priority>1.0</priority> <priority>1.0</priority>
</url> </url>
<url> <url>

Loading…
Cancel
Save