Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addon-docs: MDX support #7145

Merged
merged 9 commits into from Jun 24, 2019
Merged

Addon-docs: MDX support #7145

merged 9 commits into from Jun 24, 2019

Conversation

shilman
Copy link
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

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
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.

None yet

2 participants