mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-24 05:02:24 +08:00
28 lines
738 B
TypeScript
28 lines
738 B
TypeScript
import { configure, addParameters, addDecorator } from '@storybook/angular';
|
|
import { withA11y } from '@storybook/addon-a11y';
|
|
import addCssWarning from '../src/cssWarning';
|
|
import { extractProps, extractComponentDescription, setCompodocJson } from './compodoc';
|
|
|
|
// @ts-ignore
|
|
// eslint-disable-next-line import/extensions, import/no-unresolved
|
|
import docJson from '../documentation.json';
|
|
|
|
setCompodocJson(docJson);
|
|
|
|
addDecorator(withA11y);
|
|
addCssWarning();
|
|
|
|
addParameters({
|
|
options: {
|
|
hierarchyRootSeparator: /\|/,
|
|
},
|
|
docs: {
|
|
// inlineStories: true,
|
|
iframeHeight: '60px',
|
|
extractProps,
|
|
extractComponentDescription,
|
|
},
|
|
});
|
|
|
|
configure(require.context('../src/stories', true, /\.stories\.(ts|mdx)$/), module);
|