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: Fix stories path in Introduction.stories.mdx #13368

Merged
merged 1 commit into from Dec 4, 2020

Conversation

HorusGoul
Copy link
Contributor

What I did

The path where Storybook generates the boilerplate changed from storybook-examples to stories in https://github.com/storybookjs/storybook/blob/next/lib/cli/src/helpers.ts#L209-L214 but wasn't updated in the Introduction.stories.mdx (which also happens to correspond with the old welcome.mdx file that doesn't exist anymore).

With this change, we can prevent people from getting confused by not finding the storybook-examples
folder.

How to test

  • Is this testable with Jest or Chromatic screenshots? No
  • Does this need a new example in the kitchen sink apps? No
  • Does this need an update to the documentation? No

If your answer is yes to any of these, please make sure to include it in your PR.

The path where Storybook generates the boilerplate changed from `storybook-examples` to `stories`
in https://github.com/storybookjs/storybook/blob/next/lib/cli/src/helpers.ts#L209-L214, but wasn't
updated in the `Introduction.stories.mdx` (which also happens to correspond with the old
`welcome.mdx` file that doesn't exist anymore).

With this change, we can prevent people from getting confused by not finding the `storybook-examples`
folder.
@shilman shilman added bug cli patch:yes Bugfix & documentation PR that need to be picked to main branch labels Dec 4, 2020
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.

Thanks @HorusGoul for fixing an embarrassing bug 🙈

@shilman shilman changed the title CLI: fix generated stories path in the Introduction.stories.mdx file CLI: Fix stories path in Introduction.stories.mdx Dec 4, 2020
@shilman shilman merged commit 5336308 into storybookjs:next Dec 4, 2020
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label Dec 4, 2020
shilman added a commit that referenced this pull request Dec 4, 2020
CLI: Fix stories path in Introduction.stories.mdx
@HorusGoul
Copy link
Contributor Author

Thanks @HorusGoul for fixing an embarrassing bug 🙈

Glad to be able to help! 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cli patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants