mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 06:01:22 +08:00
CRA-kitchen-sink: Add DocsPage
This commit is contained in:
parent
7fded9198b
commit
44e98feb18
@ -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);
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user