Skip to content

Commit

Permalink
Update DocsPage demo to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Jul 6, 2021
1 parent 2a11c56 commit 7fc90b0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 18 deletions.
1 change: 1 addition & 0 deletions examples/standalone-preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"storybook": "parcel ./storybook.html --port 1337"
},
"devDependencies": {
"@storybook/addon-docs": "6.4.0-alpha.11",
"@storybook/react": "6.4.0-alpha.11",
"parcel": "^1.12.4",
"react": "16.14.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/standalone-preview/storybook.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<body>
<div id="root"></div>
<div id="docs-root"></div>
<script src="./storybook.tsx"></script>
<script src="./storybook.ts"></script>
<div class="sb-errordisplay sb-wrapper">
<div id="error-message" class="sb-heading"></div>
<pre class="sb-errordisplay_code"><code id="error-stack"></code></pre>
Expand Down
11 changes: 10 additions & 1 deletion examples/standalone-preview/storybook.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import { configure } from '@storybook/react';
import { configure, addParameters } from '@storybook/react';
import { DocsPage, DocsContainer } from '@storybook/addon-docs';

import * as Comp1 from './stories/Component1.stories';
import * as Comp2 from './stories/Component2.stories';

addParameters({
docs: {
page: DocsPage,
container: DocsContainer,
},
});

configure(() => [Comp1, Comp2], module);
16 changes: 0 additions & 16 deletions examples/standalone-preview/storybook.tsx

This file was deleted.

0 comments on commit 7fc90b0

Please sign in to comment.