Skip to content

Commit 6adb512

Browse files
authored
Merge branch 'master' into button-scroll
2 parents f0e5648 + f2fd320 commit 6adb512

162 files changed

Lines changed: 12872 additions & 7330 deletions

File tree

Some content is hidden

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

.env.development

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
GATSBY_GRAPHQL_IDE=playground
2+
# Reduce concurrency to lower memory use during develop
3+
GATSBY_CPU_COUNT=2
4+
SHARP_CONCURRENCY=2

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ jobs:
2121
npm run version
2222
npm run noIndex
2323
24+
- name: Broken Link Check 🔗
25+
uses: technote-space/broken-link-checker-action@v2
26+
with:
27+
target: ./public/**/*.html
28+
2429
- name: Zip Site
2530
run: bash ./script.sh
2631

.github/workflows/slack.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,27 @@ jobs:
1515
- name: Get current star count
1616
run: |
1717
echo "STARS=$(curl --silent 'https://api.github.com/repos/${{ github.repository }}' -H 'Accept: application/vnd.github.preview' | jq '.stargazers_count')" >> $GITHUB_ENV
18+
1819
- name: Notify Slack
19-
env:
20-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
21-
uses: pullreminders/slack-action@master
20+
uses: slackapi/slack-github-action@v2.1.1
2221
with:
23-
args: '{\"channel\":\"CSK7N9TGX\",\"text\":\"${{ github.actor }} just starred ${{ github.repository }}! (https://github.com/${{ github.repository }}/stargazers) Total ⭐️: ${{ env.STARS }}\"}'
22+
method: chat.postMessage
23+
token: ${{ secrets.SLACK_BOT_TOKEN }}
24+
payload: |
25+
channel: CSK7N9TGX
26+
type: "mrkdwn"
27+
text: "<https://github.com/${{ github.actor }}|${{ github.actor }}> just starred <https://github.com/${{ github.repository }}/stargazers|${{ github.repository }}> bringing the total ⭐️ count up to: ${{ env.STARS }}"
2428
2529
good-first-issue-notify:
2630
if: github.event_name == 'issues' && (github.event.label.name == 'good first issue' || github.event.label.name == 'first-timers-only')
2731
name: Notify Slack for new good-first-issue
2832
runs-on: ubuntu-latest
2933
steps:
3034
- name: Notify Slack
31-
env:
32-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
33-
uses: pullreminders/slack-action@master
35+
uses: slackapi/slack-github-action@v2.1.1
3436
with:
35-
args: '{\"channel\":\"C019426UBNY\",\"type\":\"section\",\"text\":\":new: Good first issue up for grabs: ${{ github.event.issue.title }} - ${{ github.event.issue.html_url }} \"}'
36-
37+
method: chat.postMessage
38+
token: ${{ secrets.SLACK_BOT_TOKEN }}
39+
payload: |
40+
channel: C019426UBNY
41+
text: ":new: Good first issue up for grabs: <${{ github.event.issue.html_url }}|${{ github.event.issue.title }}>"

.node-options

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node --max-old-space-size=8192

gatsby-config.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ module.exports = {
1313
},
1414
flags: {
1515
FAST_DEV: true,
16-
PARALLEL_SOURCING: true,
16+
PARALLEL_SOURCING: false, // Disable parallel sourcing to reduce memory pressure
17+
DEV_SSR: false, // Disable SSR to avoid build issues
1718
},
1819
trailingSlash: "never",
1920
plugins: [
@@ -134,7 +135,6 @@ module.exports = {
134135
) {
135136
nodes {
136137
body
137-
html
138138
frontmatter {
139139
title
140140
author
@@ -181,7 +181,6 @@ module.exports = {
181181
) {
182182
nodes {
183183
body
184-
html
185184
frontmatter {
186185
title
187186
author
@@ -227,7 +226,6 @@ module.exports = {
227226
) {
228227
nodes {
229228
body
230-
html
231229
frontmatter {
232230
title
233231
author
@@ -276,7 +274,6 @@ module.exports = {
276274
) {
277275
nodes {
278276
body
279-
html
280277
frontmatter {
281278
title
282279
author
@@ -336,7 +333,6 @@ module.exports = {
336333
) {
337334
nodes {
338335
body
339-
html
340336
frontmatter {
341337
title
342338
author
@@ -387,7 +383,6 @@ module.exports = {
387383
) {
388384
nodes {
389385
body
390-
html
391386
frontmatter {
392387
title
393388
author
@@ -434,7 +429,6 @@ module.exports = {
434429
) {
435430
nodes {
436431
body
437-
html
438432
frontmatter {
439433
title
440434
author
@@ -473,6 +467,7 @@ module.exports = {
473467
resolve: "gatsby-plugin-mdx",
474468
options: {
475469
extensions: [".mdx", ".md"],
470+
gatsbyRemarkPlugins: [],
476471
},
477472
},
478473
{
@@ -631,4 +626,4 @@ module.exports = {
631626
"gatsby-plugin-meta-redirect",
632627
// make sure this is always the last one
633628
],
634-
};
629+
};

gatsby-node.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,8 +1069,10 @@ exports.onCreateWebpackConfig = ({ actions, stage, getConfig }) => {
10691069
},
10701070
});
10711071

1072-
if (stage === "build-javascript") {
1072+
// Reduce memory pressure by disabling sourcemaps in dev and build
1073+
if (stage === "develop" || stage === "develop-html" || stage === "build-javascript" || stage === "build-html") {
10731074
const config = getConfig();
1075+
config.devtool = false;
10741076
const miniCssExtractPlugin = config.plugins.find(
10751077
(plugin) => plugin.constructor.name === "MiniCssExtractPlugin"
10761078
);

0 commit comments

Comments
 (0)