1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-09-19 02:47:09 +03:00
mdx-deck/packages/gatsby-theme-next
2019-07-16 20:22:04 -04:00
..
decks Adjust default theme 2019-07-09 16:31:58 -04:00
src Edit docs and add dots theme 2019-07-16 20:22:04 -04:00
.gitignore Add basic templates to new gatsby-theme 2019-07-07 13:58:57 -04:00
gatsby-browser.js Handle steps logic in new theme 2019-07-08 15:06:13 -04:00
gatsby-config.js Refactor CLI 2019-07-16 12:15:12 -04:00
gatsby-node.js Adjust export package 2019-07-16 18:45:43 -04:00
gatsby-ssr.js Handle steps logic in new theme 2019-07-08 15:06:13 -04:00
index.js Rename component 2019-07-09 11:31:49 -04:00
package.json Edit docs and add dots theme 2019-07-16 20:22:04 -04:00
README.md Adjust gatsby theme package 2019-07-10 15:56:07 -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