Repository navigation
Upgrade to Gatsby 5, React 18, MDX 2, Tailwind 3 and Node 22 - #173
Open
todaywasawesome wants to merge 7 commits into
Open
todaywasawesome wants to merge 7 commits into
todaywasawesome wants to merge 7 commits into
Conversation
- gatsby 3 -> 5 and all gatsby-* plugins to matching majors; react 17 -> 18 - gatsby-plugin-mdx 2 -> 5 (MDX 2): blog posts use the children / __contentFilePath template pattern; about/get-involved import their MDX directly; principles and testimonials load MDX via require.context - GraphQL: Gatsby 5 sort syntax, internal.contentFilePath instead of fileAbsolutePath, fields.slug instead of the removed slug field - remark-gfm for the table in the GitOpsCon relocation post (gatsby-config is now .mjs to import it) - tailwindcss 2 -> 3, @tailwindcss/typography 0.4 -> 0.5 (legacy target so prose link colors keep winning); native aspect-* utilities replace @tailwindcss/aspect-ratio - fix nested <p> in principles that React 18 reports as a hydration error - testimonials: escape the attribution dash so MDX 2 does not turn it into a list; author links now render as links instead of raw markdown - drop unused deps: axios (use fetch), body-scroll-lock, @mdx-js/mdx, gatsby-transformer-remark, @tailwindcss/aspect-ratio - Node 22 in CI and Containerfile, actions bumped to v4, drop --openssl-legacy-provider; remove the unmaintained yarn.lock and regenerate package-lock.json Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Dan Garfield <dan.garfield@octopus.com>
Signed-off-by: Dan Garfield <dan.garfield@octopus.com> # Conflicts: # content/testimonials/testimonial-4.mdx # content/testimonials/testimonial-5.mdx # content/testimonials/testimonial-6.mdx # content/testimonials/testimonial-7.mdx # content/testimonials/testimonial-8.mdx # content/testimonials/testimonial-9.mdx # src/components/events.js
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Dan Garfield <dan.garfield@octopus.com>
Signed-off-by: Dan Garfield <dan.garfield@octopus.com> # Conflicts: # src/components/testimonials.js
Signed-off-by: Dan Garfield <dan.garfield@octopus.com> # Conflicts: # content/testimonials/testimonial-1.mdx # content/testimonials/testimonial-2.mdx # content/testimonials/testimonial-3.mdx
Signed-off-by: Dan Garfield <dan.garfield@octopus.com> # Conflicts: # src/components/testimonials.js
Signed-off-by: Dan Garfield <dan.garfield@octopus.com> # Conflicts: # src/components/testimonials.js
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task 11. Upgrades the site to current libraries and tooling.
Code changes
gatsby-config.jsis nowgatsby-config.mjs(ESM), so it can import remark-gfm. MDX v2 needs remark-gfm for tables in blog posts.sortsyntax and filter oninternal.contentFilePathinstead offileAbsolutePath.children, and about/get-involved import their.mdxdirectly. Principles and testimonials load MDX throughrequire.context. Testimonial attributions use\-so they aren't turned into lists.purgeis nowcontent. The aspect-ratio plugin is replaced by nativeaspect-*classes. Typography 0.5 runs in legacy mode, so prose links keep their colour.principles-itemnested a<p>inside a<p>, which React 18 reported as errors #418/#423.fetch), body-scroll-lock, gatsby-transformer-remark, andyarn.lock(CI and the Containerfile usenpm ci). Also removed the--openssl-legacy-providerworkaround from the Containerfile.Not upgraded
Verification
npm ci,npm run lintandnpm run buildpass on node:22./,/community/,/training/,/events/,/about/,/get-involved/,/blog/and two blog posts./blog/cards changed slightly, because MDX v2 builds excerpts differently.Part of a stacked series. Merge bottom-up, starting with task 1 (#171). Plan: https://claude.ai/artifact/5cs7mhqQAzRLbeqUwaA5aM
🤖 Generated with Claude Code