diff --git a/packages/components/src/Provider.js b/packages/components/src/Provider.js index 7b4d996..00372fb 100644 --- a/packages/components/src/Provider.js +++ b/packages/components/src/Provider.js @@ -7,7 +7,7 @@ import mdxComponents from './mdx-components' const DefaultProvider = props => <>{props.children}> export const Provider = props => { - const { headTags, theme, mdx } = props + const { headTags, theme = {}, mdx } = props const { Provider: UserProvider = DefaultProvider, components: themeComponents = {}, diff --git a/packages/gatsby-theme/README.md b/packages/gatsby-theme/README.md index 3e72368..b92c747 100644 --- a/packages/gatsby-theme/README.md +++ b/packages/gatsby-theme/README.md @@ -11,7 +11,7 @@ _Note:_ This theme **requires MDX v1** and will not work with previous versions ```js // gatsby-config.js module.exports = { - __experimentalThemes: ['@mdx-deck/gatsby-theme'], + plugins: ['@mdx-deck/gatsby-theme'], } ``` @@ -50,7 +50,7 @@ The following options can be passed to the gatsby theme. ```js // gatsby-config.js module.exports = { - __experimentalThemes: [ + plugins: [ { resolve: '@mdx-deck/gatsby-theme', options: { diff --git a/packages/gatsby-theme/src/decks/hello.mdx b/packages/gatsby-theme/src/decks/hello.mdx index da408af..ea1c4a2 100644 --- a/packages/gatsby-theme/src/decks/hello.mdx +++ b/packages/gatsby-theme/src/decks/hello.mdx @@ -22,7 +22,7 @@ This is the MDX Deck Gatsby theme ```js // gatsby-config.js module.exports = { - __experimentalThemes: [ + plugins: [ '@mdx-deck/gatsby-theme', ] } diff --git a/packages/gatsby-theme/src/layouts/footer.js b/packages/gatsby-theme/src/layouts/footer.js deleted file mode 100644 index d060da7..0000000 --- a/packages/gatsby-theme/src/layouts/footer.js +++ /dev/null @@ -1 +0,0 @@ -export default () => false diff --git a/packages/gatsby-theme/src/layouts/header.js b/packages/gatsby-theme/src/layouts/header.js deleted file mode 100644 index d060da7..0000000 --- a/packages/gatsby-theme/src/layouts/header.js +++ /dev/null @@ -1 +0,0 @@ -export default () => false diff --git a/packages/gatsby-theme/src/layouts/index.js b/packages/gatsby-theme/src/layouts/index.js index bc3a8ac..ba2fc62 100644 --- a/packages/gatsby-theme/src/layouts/index.js +++ b/packages/gatsby-theme/src/layouts/index.js @@ -2,8 +2,6 @@ import React from 'react' import { navigate } from 'gatsby' import { Embed } from '@mdx-deck/components' import Root from './root' -import Header from './header' -import Footer from './footer' const Thumb = props => (