Skip to content

Commit

Permalink
Merge pull request #14310 from storybookjs/revert-14270-8153-fix-angu…
Browse files Browse the repository at this point in the history
…lar-inline

Revert "Addon-docs/Angular: Fix inline rendering setup"
  • Loading branch information
shilman authored Mar 23, 2021
2 parents f801006 + 5896240 commit 6a6ccf4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions addons/docs/angular/inline.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../dist/esm/frameworks/angular/prepareForInline');
4 changes: 0 additions & 4 deletions addons/docs/src/frameworks/angular/config.ts
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down
7 changes: 5 additions & 2 deletions examples/angular-cli/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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: {
Expand Down

0 comments on commit 6a6ccf4

Please sign in to comment.