Skip to content

Addon-docs: MDX support#7145

Merged
shilman merged 9 commits into
nextfrom
7101-mdx
Jun 24, 2019
Merged

Addon-docs: MDX support#7145
shilman merged 9 commits into
nextfrom
7101-mdx

Conversation

@shilman
Copy link
Copy Markdown
Member

@shilman shilman commented Jun 19, 2019

Issue: #7101

What I did

Note this builds on #7119 and is temporarily targeted at that PR to highlight the diffs. Should be updated after that gets merged.

  • Add an MDX loader for storybook that converts MDX files into module story format
  • Add presets for addon-docs
  • Add MDX examples

How to test

To test the MDX loader:

yarn jest --testPathPattern mdx-compiler-plugin.test.js

To test end-to-end:

cd examples/official-storybook
yarn storybook
# Check out stories under Addons|Docs/{stories,mdx}

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 19, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://monorepo-git-7101-mdx.storybook.now.sh

Copy link
Copy Markdown
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really have enough expertise to say if the AST code is good or not but this seems pretty nice

@vercel vercel Bot temporarily deployed to staging June 22, 2019 00:52 Inactive
@shilman shilman changed the base branch from 7101-doc-blocks to next June 22, 2019 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants