25 lines
645 B
TypeScript
Raw Normal View History

2019-11-25 14:43:14 +01:00
import { addParameters, addDecorator } from '@storybook/angular';
import { setCompodocJson } from '@storybook/addon-docs/angular';
2019-05-02 20:25:15 -04:00
import addCssWarning from '../src/cssWarning';
2019-10-30 00:54:00 +08:00
2019-10-30 11:08:30 +08:00
// @ts-ignore
2020-08-14 11:15:31 +08:00
// eslint-disable-next-line import/extensions, import/no-unresolved
2019-10-30 00:54:00 +08:00
import docJson from '../documentation.json';
// remove ButtonComponent to test #12009
2020-08-14 11:12:38 +08:00
const filtered = !docJson?.components
? docJson
: {
...docJson,
components: docJson.components.filter((c) => c.name !== 'ButtonComponent'),
};
setCompodocJson(filtered);
addCssWarning();
2018-12-10 19:28:40 +01:00
addParameters({
docs: {
// inlineStories: true,
iframeHeight: '60px',
2018-12-10 19:28:40 +01:00
},
});