newrelic / opensource-website

Source code for New Relic's Opensource site.
https://opensource.newrelic.com
Apache License 2.0
145 stars 93 forks source link

Update to gatsby v5 #1019

Closed LizBaker closed 5 months ago

LizBaker commented 8 months ago

The weirdest change here is to the file ProjectMainContent.js. This used to have no issues rendering mdx from a string but now it expects a react component. gatsby-plugin mdx packages up mdx pages as a component but the way this project is configured it saves and sources the mdx strings in such a way that passing the body from props wasn't working. instead i just made it evaluate the string which seems to work 🤷‍♀️

Also deleted a loooooot of commented out mdx because that's not jiving anymore and was keeping pages from rendering

still need to fix some tests that are upset about the new .mjs files from the theme

gatsby-cloud[bot] commented 8 months ago

:white_check_mark: opensource-website-develop deploy preview ready