design-system
design-system copied to clipboard
chore(docs): include `raw-components` and `health` stories in the local build
๐ 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
- โ My code follows the style guidelines of this project
- ๐ ๏ธ I have performed a self-review of my own code
- ๐ I have made corresponding changes to the documentation
- โ ๏ธ My changes generate no new warnings or errors
- ๐งช I have added tests that prove my fix is effective or that my feature works
- โ๏ธ New and existing unit tests pass locally with my changes
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 detected
Latest commit: 2e153d77e68cb55a7257937f0418c1f031feb5ef
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type |
|---|---|
| @swisspost/design-system-documentation | Minor |
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
Related Previews
- https://preview-5377--swisspost-design-system-next.netlify.app
No dependency changes detected. Learn more about Socket for GitHub.
๐ No dependency changes detected in pull request
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code