From 58962400a7361eba3bf2e5730a18cdbd29cc19a5 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Tue, 23 Mar 2021 08:42:22 +0800 Subject: [PATCH] Revert "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(-) create mode 100644 addons/docs/angular/inline.js diff --git a/addons/docs/angular/inline.js b/addons/docs/angular/inline.js new file mode 100644 index 000000000000..5e94eb81966a --- /dev/null +++ b/addons/docs/angular/inline.js @@ -0,0 +1 @@ +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 25f9626ec4dc..6071afdab112 100644 --- a/addons/docs/src/frameworks/angular/config.ts +++ b/addons/docs/src/frameworks/angular/config.ts @@ -1,13 +1,9 @@ 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 1f2220621e70..2920464a8cf4 100644 --- a/examples/angular-cli/.storybook/preview.ts +++ b/examples/angular-cli/.storybook/preview.ts @@ -1,4 +1,6 @@ +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 @@ -15,16 +17,17 @@ setCompodocJson(filtered); addCssWarning(); -export const parameters = { +addParameters({ docs: { inlineStories: true, + prepareForInline, }, options: { storySort: { order: ['Welcome', 'Core ', 'Addons ', 'Basics '], }, }, -}; +}); export const globalTypes = { theme: {