From fd5c70d30e2777314d4a6ba7537354b616ffd026 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Thu, 18 Mar 2021 21:15:07 +0800 Subject: [PATCH] Addon-docs/Angular: Fix inline rendering setup --- addons/docs/angular/inline.js | 1 - addons/docs/src/frameworks/angular/config.ts | 4 ++++ examples/angular-cli/.storybook/preview.ts | 7 ++----- 3 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 addons/docs/angular/inline.js diff --git a/addons/docs/angular/inline.js b/addons/docs/angular/inline.js deleted file mode 100644 index 5e94eb81966a..000000000000 --- a/addons/docs/angular/inline.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../dist/esm/frameworks/angular/prepareForInline'); diff --git a/addons/docs/src/frameworks/angular/config.ts b/addons/docs/src/frameworks/angular/config.ts index 6071afdab112..25f9626ec4dc 100644 --- a/addons/docs/src/frameworks/angular/config.ts +++ b/addons/docs/src/frameworks/angular/config.ts @@ -1,9 +1,13 @@ import { SourceType } from '../../shared'; import { extractArgTypes, extractComponentDescription } from './compodoc'; import { sourceDecorator } from './sourceDecorator'; +import { prepareForInline } from './prepareForInline'; export const parameters = { docs: { + // probably set this to true by default once it's battle-tested + inlineStories: false, + prepareForInline, extractArgTypes, extractComponentDescription, source: { diff --git a/examples/angular-cli/.storybook/preview.ts b/examples/angular-cli/.storybook/preview.ts index 2920464a8cf4..1f2220621e70 100644 --- a/examples/angular-cli/.storybook/preview.ts +++ b/examples/angular-cli/.storybook/preview.ts @@ -1,6 +1,4 @@ -import { addParameters } from '@storybook/angular'; import { setCompodocJson } from '@storybook/addon-docs/angular'; -import { prepareForInline } from '@storybook/addon-docs/angular/inline'; import addCssWarning from '../src/cssWarning'; // @ts-ignore @@ -17,17 +15,16 @@ setCompodocJson(filtered); addCssWarning(); -addParameters({ +export const parameters = { docs: { inlineStories: true, - prepareForInline, }, options: { storySort: { order: ['Welcome', 'Core ', 'Addons ', 'Basics '], }, }, -}); +}; export const globalTypes = { theme: {