CRA-kitchen-sink: Add DocsPage

This commit is contained in:
Michael Shilman 2019-07-24 22:33:12 +08:00
parent 7fded9198b
commit 44e98feb18
2 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import { load, addParameters, addDecorator } from '@storybook/react';
import { create } from '@storybook/theming';
import { withA11y } from '@storybook/addon-a11y';
import { DocsPage } from '@storybook/addon-docs/blocks';
addDecorator(withA11y);
addParameters({
@ -20,6 +21,7 @@ addParameters({
}),
storySort: (a, b) => a[1].id.localeCompare(b[1].id),
},
docs: DocsPage,
});
load(require.context('../src/stories', true, /\.stories\.(js|mdx)$/), module);

View File

@ -23,6 +23,7 @@
"@storybook/addon-actions": "5.2.0-beta.7",
"@storybook/addon-backgrounds": "5.2.0-beta.7",
"@storybook/addon-centered": "5.2.0-beta.7",
"@storybook/addon-docs": "5.2.0-beta.7",
"@storybook/addon-events": "5.2.0-beta.7",
"@storybook/addon-info": "5.2.0-beta.7",
"@storybook/addon-jest": "5.2.0-beta.7",