Skip to content

Commit dc1778a

Browse files
authored
Merge branch 'master' into add-cncf-2025-news-article
2 parents 4532c20 + 2dbaa09 commit dc1778a

File tree

167 files changed

+14682
-10042
lines changed

Some content is hidden

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

167 files changed

+14682
-10042
lines changed

.github/workflows/build-and-deploy-site.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ jobs:
1717
with:
1818
fetch-depth: 1
1919

20+
- name: Cache Gatsby .cache and public folders
21+
uses: actions/cache@v4
22+
id: gatsby-cache
23+
with:
24+
path: |
25+
public
26+
.cache
27+
key: ${{ runner.os }}-gatsby-${{ hashFiles('**/package-lock.json') }}
28+
restore-keys: |
29+
${{ runner.os }}-gatsby-
30+
2031
- name: Install and Build 🔧
2132
run: |
2233
npm install --legacy-peer-deps

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This setup ensures that Dapr connects to the correct Redis instance, allowing it
3232
</a>
3333

3434

35-
<h4 className="chapter-sub-heading" style="margin-top: 1.4rem">Configure State Store and Deploy</h4>
35+
<h4 className="chapter-sub-heading" style={{ marginTop: "1.4rem" }}>Configure State Store and Deploy</h4>
3636

3737
Now you can start configuring the Dapr state-store.
3838

gatsby-config.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,15 @@ module.exports = {
7979
svgoConfig: {
8080
plugins: [
8181
"prefixIds",
82+
"removeDimensions",
8283
{
8384
name: "preset-default",
8485
params: {
8586
overrides: {
8687
// or disable plugins
8788
inlineStyles: false,
8889
cleanupIds: false,
90+
removeViewBox: false,
8991
},
9092
},
9193
},
@@ -113,7 +115,8 @@ module.exports = {
113115
filter: { frontmatter: { published: { eq: true }${process.env.NODE_ENV === "development" ? ", date: { gte: \"2024-01-01\" }" : ""} } }
114116
) {
115117
nodes {
116-
html
118+
# Using excerpt instead of html because gatsby-plugin-mdx v5+ removed the html field
119+
excerpt
117120
frontmatter {
118121
title
119122
author
@@ -165,7 +168,7 @@ module.exports = {
165168
enclosure: node.frontmatter.thumbnail && {
166169
url: site.siteMetadata.siteUrl + node.frontmatter.thumbnail.publicURL,
167170
},
168-
custom_elements: [{ "content:encoded": node.html }],
171+
custom_elements: [{ "content:encoded": node.excerpt }],
169172
});
170173
});
171174
},
@@ -190,7 +193,7 @@ module.exports = {
190193
enclosure: node.frontmatter.thumbnail && {
191194
url: site.siteMetadata.siteUrl + node.frontmatter.thumbnail.publicURL,
192195
},
193-
custom_elements: [{ "content:encoded": node.html }],
196+
custom_elements: [{ "content:encoded": node.excerpt }],
194197
});
195198
});
196199
},
@@ -215,7 +218,7 @@ module.exports = {
215218
enclosure: node.frontmatter.thumbnail && {
216219
url: site.siteMetadata.siteUrl + node.frontmatter.thumbnail.publicURL,
217220
},
218-
custom_elements: [{ "content:encoded": node.html }],
221+
custom_elements: [{ "content:encoded": node.excerpt }],
219222
});
220223
});
221224
},
@@ -240,7 +243,7 @@ module.exports = {
240243
enclosure: node.frontmatter.thumbnail && {
241244
url: site.siteMetadata.siteUrl + node.frontmatter.thumbnail.publicURL,
242245
},
243-
custom_elements: [{ "content:encoded": node.html }],
246+
custom_elements: [{ "content:encoded": node.excerpt }],
244247
});
245248
});
246249
},
@@ -274,7 +277,7 @@ module.exports = {
274277
url: site.siteMetadata.siteUrl + node.frontmatter.thumbnail.publicURL,
275278
},
276279
custom_elements: [
277-
{ "content:encoded": node.html },
280+
{ "content:encoded": node.excerpt },
278281
{ "content:type": node.frontmatter.type },
279282
{ "content:category": node.frontmatter.category },
280283
{ "content:tags": node.frontmatter.tags?.join(", ") || "" },
@@ -303,7 +306,7 @@ module.exports = {
303306
enclosure: node.frontmatter.thumbnail && {
304307
url: site.siteMetadata.siteUrl + node.frontmatter.thumbnail.publicURL,
305308
},
306-
custom_elements: [{ "content:encoded": node.html }],
309+
custom_elements: [{ "content:encoded": node.excerpt }],
307310
});
308311
});
309312
},
@@ -328,7 +331,7 @@ module.exports = {
328331
enclosure: node.frontmatter.thumbnail && {
329332
url: site.siteMetadata.siteUrl + node.frontmatter.thumbnail.publicURL,
330333
},
331-
custom_elements: [{ "content:encoded": node.html }],
334+
custom_elements: [{ "content:encoded": node.excerpt }],
332335
});
333336
});
334337
},

gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (process.env.CI === "true") {
1919
// All process.env.CI conditionals in this file are in place for GitHub Pages, if webhost changes in the future, code may need to be modified or removed.
2020
//Replacing '/' would result in empty string which is invalid
2121
const replacePath = (url) =>
22-
url === "/" || url.includes("/404") ? url : `${url}.html`;
22+
url === "/" || url.includes("/404") || url.endsWith(".html") ? url : `${url}.html`;
2323

2424
exports.onCreatePage = ({ page, actions }) => {
2525
const { createPage, deletePage, createRedirect } = actions;

0 commit comments

Comments
 (0)