webiny-js icon indicating copy to clipboard operation
webiny-js copied to clipboard

docs: added the Welcome page for the Design System (Storybook)

Open swapnilmmane opened this issue 1 year ago • 0 comments

Added the Welcome page for the Design System (Storybook) Also included MDX file configuration to support writing plain docs, and added assets to the static directory to serve images and other resources.

Storybook

Changes

In Storybook we can use MDX files to create plain documentation. To achieve this, we added the MDX file configuration in the Storybook setup:

const config: StorybookConfig = {
  stories: ["../docs/stories/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
};

Additionally, to serve images and other static assets, we defined the following in the Storybook configuration:

staticDirs: ["../assets"],

How Has This Been Tested?

Tested manually.

swapnilmmane avatar Sep 13 '24 10:09 swapnilmmane