1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-08-16 01:50:39 +03:00
mdx-deck/packages/gatsby-theme
dependabot-preview[bot] d4aeab0d91
Bump remark-unwrap-images from 1.0.0 to 2.0.0
Bumps [remark-unwrap-images](https://github.com/remarkjs/remark-unwrap-images) from 1.0.0 to 2.0.0.
- [Release notes](https://github.com/remarkjs/remark-unwrap-images/releases)
- [Commits](https://github.com/remarkjs/remark-unwrap-images/compare/1.0.0...2.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-01 17:07:37 +00:00
..
decks Merge branch 'master' into next-v4 2020-02-01 11:51:56 -05:00
src Merge branch 'master' into next-v4 2020-02-01 11:51:56 -05:00
.gitignore Rename package directories 2019-07-16 22:39:12 -04:00
gatsby-browser.js Rename package directories 2019-07-16 22:39:12 -04:00
gatsby-config.js Add gatsby-remark-import-code 2019-08-29 17:19:37 -03:00
gatsby-node.js Adjust resolvers in gatsby theme 2020-01-31 13:00:00 -05:00
gatsby-ssr.js Rename package directories 2019-07-16 22:39:12 -04:00
index.js Rename package directories 2019-07-16 22:39:12 -04:00
package.json Bump remark-unwrap-images from 1.0.0 to 2.0.0 2020-04-01 17:07:37 +00:00
README.md Rename package directories 2019-07-16 22:39:12 -04:00

gatsby-theme-mdx-deck

Add MDX Deck presentations to any Gatsby site

npm i gatsby-theme-mdx-deck
// gatsby-config.js
module.exports = {
  plugins: [
    'gatsby-theme-mdx-deck',
  ]
}

Add one or more MDX presentation files to the decks/ directory. The filenames will be used for creating routes to each deck.

Example decks/hello.mdx

# Hello!

---

## Beep boop

Layouts

Individual slides can be wrapped with layout components, which work similarly to slide templates found in other presentation software.

Example decks/hello.mdx

import Layout from './my-layout'

<Layout>

# Hello

</Layout>

---

## Beep boop

Configuration Options

The Gatsby theme accepts the following options.

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: 'gatsby-theme-mdx-deck',
      options: {
        // enable or disable gatsby-plugin-mdx
        mdx: false,
        // source directory
        contentPath: 'decks',
        // base path for routes generate by this theme
        basePath: ''
      }
    }
  ]
}

MIT License