mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-25 05:03:10 +08:00
25 lines
595 B
TypeScript
25 lines
595 B
TypeScript
import { configure, addParameters, addDecorator } from '@storybook/angular';
|
|
import { withA11y } from '@storybook/addon-a11y';
|
|
import { setCompodocJson } from '@storybook/addon-docs/angular';
|
|
import addCssWarning from '../src/cssWarning';
|
|
|
|
// @ts-ignore
|
|
import docJson from '../documentation.json';
|
|
|
|
setCompodocJson(docJson);
|
|
|
|
addDecorator(withA11y);
|
|
addCssWarning();
|
|
|
|
addParameters({
|
|
options: {
|
|
hierarchyRootSeparator: /\|/,
|
|
},
|
|
docs: {
|
|
// inlineStories: true,
|
|
iframeHeight: '60px',
|
|
},
|
|
});
|
|
|
|
configure(require.context('../src/stories', true, /\.stories\.(ts|mdx)$/), module);
|