2019-11-25 14:43:14 +01:00
|
|
|
import { addParameters, addDecorator } from '@storybook/angular';
|
2019-11-01 19:35:30 +08:00
|
|
|
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';
|
2020-08-14 10:52:01 +08:00
|
|
|
// 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'),
|
|
|
|
};
|
2020-08-14 10:52:01 +08:00
|
|
|
setCompodocJson(filtered);
|
2018-01-10 10:19:36 +02:00
|
|
|
|
|
|
|
addCssWarning();
|
2017-07-14 12:21:30 -06:00
|
|
|
|
2018-12-10 19:28:40 +01:00
|
|
|
addParameters({
|
2019-08-27 15:40:06 +08:00
|
|
|
docs: {
|
2019-10-08 16:47:28 +08:00
|
|
|
// inlineStories: true,
|
2019-08-27 15:40:06 +08:00
|
|
|
iframeHeight: '60px',
|
2018-12-10 19:28:40 +01:00
|
|
|
},
|
|
|
|
});
|