Skip to content

Commit

Permalink
start update mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
eng618 committed Mar 27, 2023
1 parent 72a17c5 commit d44d40e
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 500 deletions.
5 changes: 3 additions & 2 deletions packages/gatsby-theme-carbon/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ module.exports = (themeOptions) => {
...defaultRemarkPlugins,
...gatsbyRemarkPlugins,
],
remarkPlugins,
mdxOptions: {
remarkPlugins,
},
defaultLayouts: {
default: require.resolve('./src/templates/Default.js'),
home: require.resolve('./src/templates/Homepage.js'),
Expand Down Expand Up @@ -167,7 +169,6 @@ module.exports = (themeOptions) => {
: require.resolve('./src/images/favicon.svg'),
},
},
`gatsby-plugin-react-helmet`,
].concat(optionalPlugins),
};
};
6 changes: 2 additions & 4 deletions packages/gatsby-theme-carbon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
"@carbon/pictograms-react": "^11.40.0",
"@carbon/react": "^1.25.0",
"@carbon/themes": "^11.17.0",
"@mdx-js/mdx": "^1.6.22",
"@mdx-js/react": "^1.6.22",
"@mdx-js/react": "^2.3.0",
"@reach/router": "^1.3.4",
"@vimeo/player": "^2.18.0",
"beautiful-react-hooks": "^0.23.1",
Expand All @@ -39,9 +38,8 @@
"gatsby-plugin-catch-links": "^5.8.0",
"gatsby-plugin-lunr": "^1.5.2",
"gatsby-plugin-manifest": "^5.8.0",
"gatsby-plugin-mdx": "5.8.0",
"gatsby-plugin-mdx": "^5.8.0",
"gatsby-plugin-offline": "^6.8.0",
"gatsby-plugin-react-helmet": "^6.8.0",
"gatsby-plugin-sass": "6.8.0",
"gatsby-plugin-sass-resources": "^3.0.1",
"gatsby-plugin-sharp": "^5.8.0",
Expand Down
Loading

0 comments on commit d44d40e

Please sign in to comment.