@awolf81/gatsby-theme-mdx

0.0.2-4 • Public • Published

Gatsby MDX theme

This Theme adds the MDX plugin & loads MDX files with file sytem plugin.

Installation & Usage

yarn add @awolf81/gatsby-theme-mdx

or

npm install @awolf81/gatsby-theme-mdx

Use the Theme by adding it to your gatsby-config.js file like this:

module.exports = {
  plugins: [
    {
      resolve: '@awolf81/gatsby-theme-mdx',
      options: {
        /* basePath: '/myCoolStuff' */
        /* contentPath: 'your-content-location' */
      },
    },
  ],
}

Run gatsby develop and add your first MDX file to the created docs folder. contentPath defaults to docs.

Options

basePath
The url where your MDX files are served
contentPath
The directory that will be created by the Theme. That's the location of your MDX files on disk.

Package Sidebar

Install

npm i @awolf81/gatsby-theme-mdx

Weekly Downloads

1

Version

0.0.2-4

License

MIT

Unpacked Size

5.03 kB

Total Files

12

Last publish

Collaborators

  • awolf81