design-system icon indicating copy to clipboard operation
design-system copied to clipboard

chore(docs): include `raw-components` and `health` stories in the local build

Open schaertim opened this issue 7 months ago โ€ข 4 comments

๐Ÿ“„ 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

schaertim avatar Apr 30 '25 08:04 schaertim

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

vercel[bot] avatar Apr 30 '25 08:04 vercel[bot]

๐Ÿฆ‹ 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

changeset-bot[bot] avatar Apr 30 '25 08:04 changeset-bot[bot]

Related Previews

  • https://preview-5377--swisspost-design-system-next.netlify.app

swisspost-bot avatar Apr 30 '25 08:04 swisspost-bot

No dependency changes detected. Learn more about Socket for GitHub.

๐Ÿ‘ No dependency changes detected in pull request

socket-security[bot] avatar May 27 '25 08:05 socket-security[bot]