mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 08:01:20 +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 { load, addParameters, addDecorator } from '@storybook/react';
|
||||||
import { create } from '@storybook/theming';
|
import { create } from '@storybook/theming';
|
||||||
import { withA11y } from '@storybook/addon-a11y';
|
import { withA11y } from '@storybook/addon-a11y';
|
||||||
|
import { DocsPage } from '@storybook/addon-docs/blocks';
|
||||||
|
|
||||||
addDecorator(withA11y);
|
addDecorator(withA11y);
|
||||||
addParameters({
|
addParameters({
|
||||||
@ -20,6 +21,7 @@ addParameters({
|
|||||||
}),
|
}),
|
||||||
storySort: (a, b) => a[1].id.localeCompare(b[1].id),
|
storySort: (a, b) => a[1].id.localeCompare(b[1].id),
|
||||||
},
|
},
|
||||||
|
docs: DocsPage,
|
||||||
});
|
});
|
||||||
|
|
||||||
load(require.context('../src/stories', true, /\.stories\.(js|mdx)$/), module);
|
load(require.context('../src/stories', true, /\.stories\.(js|mdx)$/), module);
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
"@storybook/addon-actions": "5.2.0-beta.7",
|
"@storybook/addon-actions": "5.2.0-beta.7",
|
||||||
"@storybook/addon-backgrounds": "5.2.0-beta.7",
|
"@storybook/addon-backgrounds": "5.2.0-beta.7",
|
||||||
"@storybook/addon-centered": "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-events": "5.2.0-beta.7",
|
||||||
"@storybook/addon-info": "5.2.0-beta.7",
|
"@storybook/addon-info": "5.2.0-beta.7",
|
||||||
"@storybook/addon-jest": "5.2.0-beta.7",
|
"@storybook/addon-jest": "5.2.0-beta.7",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user