Fix broken build

astro
Kamran Ahmed 2 years ago
parent 362588cf1b
commit 358c1440d8
  1. 6
      src/components/InteractiveRoadmap/InteractiveRoadmap.astro
  2. 1
      src/roadmaps/android/android.md
  3. 4
      src/roadmaps/angular/angular.md
  4. 1
      src/roadmaps/postgresql-dba/postgresql-dba.md

@ -11,13 +11,13 @@ export interface Props {
description: string; description: string;
roadmapPermalink: string; roadmapPermalink: string;
jsonUrl: string; jsonUrl: string;
dimensions: { dimensions?: {
width: number; width: number;
height: number; height: number;
}; };
} }
const { roadmapId, jsonUrl, dimensions, description, roadmapPermalink } = const { roadmapId, jsonUrl, dimensions = null, description, roadmapPermalink } =
Astro.props; Astro.props;
--- ---
@ -41,7 +41,7 @@ const { roadmapId, jsonUrl, dimensions, description, roadmapPermalink } =
<TopicOverlay /> <TopicOverlay />
<div <div
id="roadmap-svg" id="roadmap-svg"
style={`--aspect-ratio:${dimensions.width}/${dimensions.height}`} style={dimensions ? `--aspect-ratio:${dimensions.width}/${dimensions.height}` : null}
data-roadmap-id={roadmapId} data-roadmap-id={roadmapId}
data-json-url={jsonUrl} data-json-url={jsonUrl}
> >

@ -1,5 +1,4 @@
--- ---
jsonUrl: "/jsons/android.json"
pdfUrl: "/pdfs/android.pdf" pdfUrl: "/pdfs/android.pdf"
order: 4 order: 4
featuredTitle: "Android" featuredTitle: "Android"

@ -1,6 +1,6 @@
--- ---
jsonUrl: "angular.json" jsonUrl: "/jsons/angular.json"
pdfUrl: "ngular.pdf" pdfUrl: "/pdfs/angular.pdf"
order: 3 order: 3
featuredTitle: "Angular" featuredTitle: "Angular"
featuredDescription: "Step by step guide to become a Angular Developer in 2022" featuredDescription: "Step by step guide to become a Angular Developer in 2022"

@ -1,5 +1,4 @@
--- ---
jsonUrl: "/jsons/postgresql-dba.json"
pdfUrl: "/pdfs/postgresql-dba.pdf" pdfUrl: "/pdfs/postgresql-dba.pdf"
order: 5 order: 5
featuredTitle: "DBA" featuredTitle: "DBA"

Loading…
Cancel
Save