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

CLI: Deprecate '--story-format=mdx' option #12905

Merged
merged 2 commits into from Oct 25, 2020
Merged

Conversation

tooppaaa
Copy link
Contributor

Issue: #12285

What I did

Deprecate mdx option
add a warning

How to test

  • node ../../storybook/lib/cli/dist/generate init --story-format mdx

@tooppaaa tooppaaa added the maintenance User-facing maintenance tasks label Oct 25, 2020
@tooppaaa tooppaaa requested a review from yannbf October 25, 2020 08:42
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

Looks good except for the warning. Also, the template generates docs-only MDX -- it does not actually generate MDX stories.

I also wonder how to better support people who want to write MDX, e.g. https://twitter.com/preshonyee/status/1319466429595398145. The out of box experience is pretty terrible for people who want to use MDX as their primary syntax. cc @tmeasday @jonniebigodes

lib/cli/src/initiate.ts Outdated Show resolved Hide resolved
@shilman shilman added the cli label Oct 25, 2020
@shilman shilman added this to the 6.1 essentials milestone Oct 25, 2020
Co-authored-by: Michael Shilman <shilman@users.noreply.github.com>
@shilman shilman merged commit 651cf94 into next Oct 25, 2020
@shilman shilman deleted the feat/killMDXCliOption branch October 25, 2020 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants