diff --git a/.storybook/config.js b/.storybook/config.js index c3369235c723d..b8cdf2a2bee92 100644 --- a/.storybook/config.js +++ b/.storybook/config.js @@ -14,6 +14,13 @@ import './style.scss'; function loadStories() { window.wp = { ...window.wp, element }; + require( './stories/intro' ); + require( './stories/contributing' ); + require( './stories/coding-guidelines' ); + require( '../i18n/story' ); + require( '../element/story' ); + require( '../blocks/story' ); + require( '../editor/story' ); require( '../components/story' ); require( '../components/button/story' ); require( '../components/higher-order/story' ); diff --git a/.storybook/stories/coding-guidelines.js b/.storybook/stories/coding-guidelines.js new file mode 100644 index 0000000000000..85ec888d93f41 --- /dev/null +++ b/.storybook/stories/coding-guidelines.js @@ -0,0 +1,15 @@ +/** + * External dependencies + */ +import ReactMarkdown from 'react-markdown'; +import { storiesOf } from '@storybook/react'; +import { withKnobs } from '@storybook/addon-knobs'; + +/** + * Internal dependencies + */ +import readme from '../../docs/coding-guidelines.md'; + +storiesOf( 'Gutenberg', module ) + .addDecorator( withKnobs ) + .add( 'Coding Guidelines', () => ); diff --git a/.storybook/stories/contributing.js b/.storybook/stories/contributing.js new file mode 100644 index 0000000000000..aa11a3a7a3ffc --- /dev/null +++ b/.storybook/stories/contributing.js @@ -0,0 +1,15 @@ +/** + * External dependencies + */ +import ReactMarkdown from 'react-markdown'; +import { storiesOf } from '@storybook/react'; +import { withKnobs } from '@storybook/addon-knobs'; + +/** + * Internal dependencies + */ +import readme from '../../CONTRIBUTING.md'; + +storiesOf( 'Gutenberg', module ) + .addDecorator( withKnobs ) + .add( 'Contributing', () => ); diff --git a/.storybook/stories/intro.js b/.storybook/stories/intro.js new file mode 100644 index 0000000000000..6798f125317c8 --- /dev/null +++ b/.storybook/stories/intro.js @@ -0,0 +1,15 @@ +/** + * External dependencies + */ +import ReactMarkdown from 'react-markdown'; +import { storiesOf } from '@storybook/react'; +import { withKnobs } from '@storybook/addon-knobs'; + +/** + * Internal dependencies + */ +import readme from '../../README.md'; + +storiesOf( 'Gutenberg', module ) + .addDecorator( withKnobs ) + .add( 'Intro', () => ); diff --git a/blocks/story/index.js b/blocks/story/index.js new file mode 100644 index 0000000000000..ff05da78b4323 --- /dev/null +++ b/blocks/story/index.js @@ -0,0 +1,15 @@ +/** + * External dependencies + */ +import ReactMarkdown from 'react-markdown'; +import { storiesOf } from '@storybook/react'; +import { withKnobs } from '@storybook/addon-knobs'; + +/** + * Internal dependencies + */ +import readme from '../README.md'; + +storiesOf( 'Modules', module ) + .addDecorator( withKnobs ) + .add( 'Blocks', () => ); diff --git a/editor/story/index.js b/editor/story/index.js new file mode 100644 index 0000000000000..08cbfea30a119 --- /dev/null +++ b/editor/story/index.js @@ -0,0 +1,15 @@ +/** + * External dependencies + */ +import ReactMarkdown from 'react-markdown'; +import { storiesOf } from '@storybook/react'; +import { withKnobs } from '@storybook/addon-knobs'; + +/** + * Internal dependencies + */ +import readme from '../README.md'; + +storiesOf( 'Modules', module ) + .addDecorator( withKnobs ) + .add( 'Editor', () => ); diff --git a/element/story/index.js b/element/story/index.js new file mode 100644 index 0000000000000..31ec383f04352 --- /dev/null +++ b/element/story/index.js @@ -0,0 +1,15 @@ +/** + * External dependencies + */ +import ReactMarkdown from 'react-markdown'; +import { storiesOf } from '@storybook/react'; +import { withKnobs } from '@storybook/addon-knobs'; + +/** + * Internal dependencies + */ +import readme from '../README.md'; + +storiesOf( 'Modules', module ) + .addDecorator( withKnobs ) + .add( 'Element', () => ); diff --git a/i18n/story/index.js b/i18n/story/index.js new file mode 100644 index 0000000000000..459d414852175 --- /dev/null +++ b/i18n/story/index.js @@ -0,0 +1,15 @@ +/** + * External dependencies + */ +import ReactMarkdown from 'react-markdown'; +import { storiesOf } from '@storybook/react'; +import { withKnobs } from '@storybook/addon-knobs'; + +/** + * Internal dependencies + */ +import readme from '../README.md'; + +storiesOf( 'Modules', module ) + .addDecorator( withKnobs ) + .add( 'i18n', () => );