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: Support story.mdx, stories.mdx #13996

Merged
merged 3 commits into from
Feb 22, 2021
Merged

Conversation

shilman
Copy link
Member

@shilman shilman commented Feb 22, 2021

Issue: N/A

What I did

Some people structure their components like Button/{index.tsx,stories.mdx} rather than {Button.tsx,Button.stories.tsx}. This tweak adds Storybook MDX support for story/stories.mdx to support this use case.

Technically this is a breaking change, bug it's a super edge case, so I'm just documenting it in the migration guide.

Self-merging @phated

How to test

See official-storybook updates

@shilman shilman added this to the 6.2 docs milestone Feb 22, 2021
@shilman shilman merged commit ccaca62 into next Feb 22, 2021
@shilman shilman deleted the docs-accept-story-mdx branch February 22, 2021 01:30
@silouanwright
Copy link

I don't currently use this structure but I certainly would like to, thanks for adding this.

Robbert added a commit to nl-design-system/utrecht that referenced this pull request May 3, 2021
The Storybook 6.2 default glob has been updated, this change follows the latest default.

storybookjs/storybook#13996
Yolijn pushed a commit to nl-design-system/utrecht that referenced this pull request May 3, 2021
The Storybook 6.2 default glob has been updated, this change follows the latest default.

storybookjs/storybook#13996
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