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

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

@ -1,6 +1,6 @@
---
jsonUrl: "angular.json"
pdfUrl: "ngular.pdf"
jsonUrl: "/jsons/angular.json"
pdfUrl: "/pdfs/angular.pdf"
order: 3
featuredTitle: "Angular"
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"
order: 5
featuredTitle: "DBA"

Loading…
Cancel
Save