-
Notifications
You must be signed in to change notification settings - Fork 18
chore(docs): include raw-components
and health
stories in the local build
#5377
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
base: main
Are you sure you want to change the base?
chore(docs): include raw-components
and health
stories in the local build
#5377
Conversation
You must have Developer access to commit code to Swiss Post on Vercel. If you contact an administrator and receive Developer access, commit again to see your changes. Learn more: https://vercel.com/docs/accounts/team-members-and-roles/access-roles#team-level-roles |
🦋 Changeset detectedLatest commit: c78ddc1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
…' of https://github.com/swisspost/design-system into 5286-bug-storybook-can-search-through-hidden-components
Related Previews |
Co-authored-by: Oliver Schürch <[email protected]>
|
📄 Description
Some of the stories should only be shown when the docs are run locally. Up to now, they were just hidden from the navigation sidebar using css. That meant they could still be found and accessed by searching for them in the searchbar.
As a more robust solution instead of just hiding them with css i added logic to not include them in the build at all if we are not in the dev environment.
🚀 Demo
If applicable, please add a screenshot or video to illustrate the changes.
📝 Checklist