Skip to content

Commit c1f1bd8

Browse files
authored
Merge pull request #7140 from layer5io/leecalcote/gatsby-mdx-plugin-upgrade
chore: upgrade MDX packages and remove deprecated mdxOptions configuration.
2 parents 75d4d9c + 48993d1 commit c1f1bd8

File tree

571 files changed

+8767
-12926
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

571 files changed

+8767
-12926
lines changed

CONTRIBUTING.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,21 @@ Change image according to isDark value:
398398
/>
399399
```
400400
401-
> Note:
402-
>
403401
> - A condition `frontmatter.darkthumbnail.publicURL !== frontmatter.thumbnail.publicURL` is added so that the image only changes if there is a difference between the thumbnail publicURLs.
404402
403+
### Using SVG as Thumbnail
404+
405+
If you are using an SVG file as a thumbnail, you should use the `thumbnail_svg` and `darkthumbnail_svg` fields in the frontmatter instead of `thumbnail` and `darkthumbnail`. This prevents Gatsby's `childImageSharp` from attempting to process the SVG, which can cause build warnings and errors.
406+
407+
Example frontmatter:
408+
409+
```yaml
410+
thumbnail_svg: ./my-icon.svg
411+
darkthumbnail_svg: ./my-icon-dark.svg
412+
```
413+
414+
The components are set up to automatically check for these fields if the standard `thumbnail` fields are missing or if they need to fallback to the SVG version.
415+
405416
## Adding Images and Icons
406417

407418
1. It is recommended to use `@react-icons/all-files` instead of `react-icons` for importing icons. The Issue with react-icons is that even though we are importing a single icon from the package/folder it still imports the complete icon folder which is creating unwanted junks of JS in the build.

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ site:
2727

2828
## Run layer5.io on your local machine. Alternate method.
2929
site-fast:
30-
gatsby develop
30+
NODE_OPTIONS=--max-old-space-size=8192 gatsby develop
3131

3232
## Build layer5.io on your local machine.
3333
build:
34-
gatsby build && gatsby serve
34+
npm run build && npm run serve
3535

3636
## Empty build cache and run layer5.io on your local machine.
3737
clean:
@@ -41,6 +41,10 @@ clean:
4141
lint:
4242
npm run lint
4343

44+
## Kill process running the site
45+
kill:
46+
lsof -ti:8000 | xargs kill -9 2>/dev/null || true
47+
4448
## Prepare a list of features for the pricing page.
4549
features:
4650
curl -L https://docs.google.com/spreadsheets/d/e/2PACX-1vQwzrUSKfuSRcpkp7sJTw1cSB63s4HCjYLJeGPWECsvqn222hjaaONQlN4X8auKvlaB0es3BqV5rQyz/pub\?gid\=1153419764\&single\=true\&output\=csv -o .github/build/spreadsheet.csv

content-learn/mastering-kubernetes-for-engineers/ambassador-edge-stack-api-gateway-with-meshery/edge/design-interpretation.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ videos: 0
77
lectures: 4
88
order: 3
99
---
10-
import * as React from "react";
1110
import MesheryDesignEmbed from "@layer5/meshery-design-embed";
1211
import { ChapterStyle } from "../../../../src/components/Learn-Components/Chapters-Style/chapters.style.js";
1312
import es8 from "../../../../src/assets/images/learning-path/edge-stack/es8.png";

content-learn/mastering-kubernetes-for-engineers/ambassador-edge-stack-api-gateway-with-meshery/edge/introduction.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ videos: 0
77
lectures: 4
88
order: 1
99
---
10-
import * as React from "react";
1110
import MesheryDesignEmbed from "@layer5/meshery-design-embed";
1211
import { ChapterStyle } from "../../../../src/components/Learn-Components/Chapters-Style/chapters.style.js";
1312

content-learn/mastering-kubernetes-for-engineers/deploying-wordpress-and-mysql-with-persistent-volumes-with-meshery/sql/import-designs.mdx

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,14 @@ import wp7 from "../../../../src/assets/images/learning-path/sql/wp7.png";
2424
- Select `Kubernetes Manifest` from the "Design Type" dropdown menu.
2525

2626
<br />
27-
<a href={wp1}>
28-
<img src={wp1} width="100%" align="center" />
29-
</a>
27+
<a href={wp1}><img src={wp1} width="100%" align="center" /></a>
3028

3129
_Figure: Import modal_
3230

3331
- Choose `File Upload` for the upload method, and select the file you just downloaded.
3432
- Then, click on `Import`.
3533
<br />
36-
<a href={wp2}>
37-
<img src={wp2} width="100%" align="center" />
38-
</a>
34+
<a href={wp2}><img src={wp2} width="100%" align="center" /></a>
3935

4036
_Figure: Import mysql-deployment_
4137

@@ -44,22 +40,18 @@ _Figure: Import modal_
4440
Clicking on the names of the designs on the `Designs` tab displays the visual representations of the various Kubernetes resources and their relationships on the canvas.
4541

4642
<br />
47-
<a href={wp3}>
48-
<img src={wp3} width="100%" align="center" />
49-
</a>
43+
<a href={wp3}><img src={wp3} width="100%" align="center" /></a>
5044

5145
_Figure: Imported designs on canvas_
5246

5347
4. Now, follow the same steps to import the `wordpress-deployment` file.
5448

5549
<br />
56-
<a href={wp4}>
57-
<img src={wp4} width="100%" align="center" />
58-
</a>
50+
<a href={wp4}><img src={wp4} width="100%" align="center" /></a>
5951

6052
_Figure: wordpress-deployment_
6153

62-
<h2 class="chapter-sub-heading">Merging the Designs</h2>
54+
<h2 className="chapter-sub-heading">Merging the Designs</h2>
6355

6456
Next, you will combine the WordPress and MySQL designs into a single design file. By merging these designs, you can manage and deploy both resources together.
6557

@@ -69,27 +61,21 @@ To merge the MySQL deployment design with the WordPress deployment design:
6961

7062
<br />
7163

72-
<a href={wp5}>
73-
<img src={wp5} width="100%" align="center" />
74-
</a>
64+
<a href={wp5}><img src={wp5} width="100%" align="center" /></a>
7565

7666
_Figure: drag and drop design_
7767

7868
2. This action will open a merge modal asking if you want to merge the design, Click on `Merge`.
7969

8070
<br />
81-
<a href={wp6}>
82-
<img src={wp6} width="100%" align="center" />
83-
</a>
71+
<a href={wp6}><img src={wp6} width="100%" align="center" /></a>
8472

8573
_Figure: merge modal_
8674

8775
3. Click on `Save As` and enter `wordpress-mysql-deployment` as the new file name.
8876

8977
<br />
90-
<a href={wp7}>
91-
<img src={wp7} width="100%" align="center" />
92-
</a>
78+
<a href={wp7}><img src={wp7} width="100%" align="center" /></a>
9379

9480
_Figure: save design_
9581

content-learn/mastering-kubernetes-for-engineers/explore-dapr-with-meshery/dapr/deploy-dapr-control-plane.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ videos: 0
77
lectures: 4
88
order: 2
99
---
10-
import * as React from "react";
1110
import MesheryDesignEmbed from "@layer5/meshery-design-embed";
1211
import { ChapterStyle } from "../../../../src/components/Learn-Components/Chapters-Style/chapters.style.js";
1312
import daprHelm from "../../../../src/assets/images/learning-path/dapr/dapr-helm.png";

content-learn/mastering-kubernetes-for-engineers/explore-dapr-with-meshery/dapr/deploy-dapr-statestore-component.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ videos: 0
77
lectures: 4
88
order: 4
99
---
10-
import * as React from "react";
1110
import MesheryDesignEmbed from "@layer5/meshery-design-embed";
1211
import { ChapterStyle } from "../../../../src/components/Learn-Components/Chapters-Style/chapters.style.js";
1312
import dragComponentImage from "../../../../src/assets/images/learning-path/dapr/drag-component.png";

content-learn/mastering-kubernetes-for-engineers/explore-dapr-with-meshery/dapr/deploy-python-and-nodejs-application.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ lectures: 4
88
order: 5
99
---
1010

11-
import * as React from "react";
1211
import MesheryDesignEmbed from "@layer5/meshery-design-embed";
1312
import { ChapterStyle } from "../../../../src/components/Learn-Components/Chapters-Style/chapters.style.js";
1413
import filterNodePythonImg from "../../../../src/assets/images/learning-path/dapr/filter-node-python.png";

content-learn/mastering-kubernetes-for-engineers/explore-dapr-with-meshery/dapr/deploy-redis.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ videos: 0
77
lectures: 4
88
order: 3
99
---
10-
import * as React from "react";
1110
import MesheryDesignEmbed from "@layer5/meshery-design-embed";
1211
import { ChapterStyle } from "../../../../src/components/Learn-Components/Chapters-Style/chapters.style.js";
1312
import daprRedis from "../../../../src/assets/images/learning-path/dapr/redis-dapr.png";

content-learn/mastering-kubernetes-for-engineers/index.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ title: 'Mastering Kubernetes for Engineers'
33
description: 'Learn how to configure your Kubernetes clusters and manage the lifecycle of your workloads'
44
order: 4
55
themeColor: '#3C494F'
6-
cardImage: '../../src/assets/images/kubernetes/kubernetes-color.svg'
6+
cardImage: '../../src/assets/images/academy/academy-layer5-light.png'
77
courses: 1
88
disabled: no
99
---
1010

11-
<!--
12-
This file is only used to render the courses list within a learning path.
13-
Check the Learn-Layer5 folder under src/sections/, src/templates for more understanding of how the data is used
14-
-->
11+
{/* This file is only used to render the courses list within a learning path.
12+
Check the Learn-Layer5 folder under src/sections/, src/templates for more understanding of how the data is used */}

0 commit comments

Comments
 (0)