-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Improve docs & assist with automatic story loading #746
Comments
not easy to find in the docs, but it is in there: https://getstorybook.io/docs/react-storybook/basics/writing-stories#loading-stories-dynamically |
The code in the docs doesn't mention this but it also support nested folders too. something like |
yep, i keep my stories in nested folders, right next to the component. the details in the docs support that approach well |
@travi You say it was not easy to find, do you have any suggestions how to make it easier to find? |
@ndelangen I feel like this should be a default that |
yeah something to think about. |
@ndelangen good question. docs organization is never simple. the main thought i guess i have it that i would have expected these details under the "slow start guide" where it describes the config file since its more related to config than the stories themselves |
i would appreciate for checking
but at the same time, i don't believe storybook should do this by default. this seems more like an implementation detail. |
I could see us auto-loading all |
I like this pattern because it is consistent with Jest. |
I will close this and create a new issue dedicated to:
done: #1013 |
config.js
requires you torequire()
all your stories, It's very common to see users use webpack to autorequire all stories using a pattern:However this is undocumented. We should add this to the docs and possibly add a demo-project using this to refer to.
The text was updated successfully, but these errors were encountered: