Skip to content

Commit

Permalink
Framework: Add a stand-alone Storybook documentation page example.
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras committed Sep 24, 2019
1 parent 49066de commit 4df8012
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/components/docs/introduction.story.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Meta } from '@storybook/addon-docs/blocks';

<Meta title="Introduction" />

# Introduction

Hello World
8 changes: 7 additions & 1 deletion packages/components/storybook/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@ import { withA11y } from '@storybook/addon-a11y';
import '../build-style/style.css';

addDecorator( withA11y );
configure( require.context( '../src', true, /\/stories\/.+\.js$/ ), module );
configure(
[
require.context( '../docs', true, /\/.+\.mdx$/ ),
require.context( '../src', true, /\/stories\/.+\.js$/ ),
],
module
);

0 comments on commit 4df8012

Please sign in to comment.