Skip to content

Commit

Permalink
Merge pull request #14270 from storybookjs/8153-fix-angular-inline
Browse files Browse the repository at this point in the history
Addon-docs/Angular: Fix inline rendering setup
  • Loading branch information
shilman authored Mar 18, 2021
2 parents 491021d + fd5c70d commit d8813c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion addons/docs/angular/inline.js

This file was deleted.

4 changes: 4 additions & 0 deletions addons/docs/src/frameworks/angular/config.ts
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down
7 changes: 2 additions & 5 deletions examples/angular-cli/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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: {
Expand Down

0 comments on commit d8813c8

Please sign in to comment.