See what's launched

The next gen Gatsby is here Performance, developer velocity, and scaling to meet Enterprise needs - See what’s launched

Sign Up for Free
Community Plugin
View plugin on GitHub

Gatsby MDX theme

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

Installation & Usage

yarn add @awolf81/gatsby-theme-mdx


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.


The url where your MDX files are served
The directory that will be created by the Theme. That's the location of your MDX files on disk.
© 2022 Gatsby, Inc.