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

docs: improved design system documentation - button #4527

Merged
merged 3 commits into from
Feb 7, 2025

Conversation

swapnilmmane
Copy link
Contributor

Changes

Improved button design system documentation
Revamped the button documentation to enhance the developer experience.
The new docs consolidate all stories in one place,
including sample code and provide interactive props
table where users can modify props and see live variations of the button.

Done the following changes:

  1. Added webiny-admin-storybook-docs command in package.json to generate docs
    while skipping the story list in the side navigation.
  2. Added storybook-docs command to start Storybook in docs-only mode on port 6007.
  3. Added --docs prefix to build-storybook to publish only MDX docs (skipping the story list in side navigation) while building the Storybook project that is deployed via npx chromatic --project-token command and our
    Chromatic - Storybook Preview GitHub action
    to Chromatic.
  4. Included button variation examples with code samples.
  5. Defined all argTypes (props) in Button.stories.tsx to make them available in the Props table.
    This improves the discoverability, usability, and interactivity of the button documentation.

How Has This Been Tested?

Manually

Revamped the button documentation to enhance the developer experience.
The new docs consolidate all stories in one place,
including sample code and provide an interactive props
table where users can modify props and see live variations of the button.
Done the following changes:

1. Added webiny-admin-storybook-docs command in package.json to generatedocs
while skipping the story list in side navigation.
2. Added storybook-docs command to start Storybook in docs-only mode on port 6007.
3. Included button variation examples with code samples.
4. Defined all argTypes (props) in Button.stories.tsx to make them available in the Props table.
This improves the discoverability, usability, and interactivity of the button documentation.
@swapnilmmane swapnilmmane merged commit 08c3431 into feat/new-admin-ui Feb 7, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants