Skip to content

Commit

Permalink
import README and CONTRIBUTING into Storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
chad1008 committed May 1, 2023
1 parent feeccc5 commit fb49452
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const stories = [
'../packages/components/src/**/stories/*.@(js|tsx|mdx)',
'../packages/icons/src/**/stories/*.@(js|tsx|mdx)',
'../packages/edit-site/src/**/stories/*.@(js|tsx|mdx)',
'../packages/components/README.mdx',
].filter( Boolean );

module.exports = {
Expand All @@ -14,7 +15,7 @@ module.exports = {
addons: [
{
name: '@storybook/addon-docs',
options: { configureJSX: true },
options: { configureJSX: true, transcludeMarkdown: true },
},
'@storybook/addon-controls',
'@storybook/addon-viewport',
Expand Down
6 changes: 6 additions & 0 deletions storybook/stories/docs/contributing.story.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Meta } from '@storybook/addon-docs';
import Contributing from '../../../packages/components/CONTRIBUTING.md';

<Meta title="Docs/Contributing Guidelines" />

<Contributing />
6 changes: 6 additions & 0 deletions storybook/stories/docs/readme.story.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Meta } from '@storybook/addon-docs';
import Readme from '../../../packages/components/README.md';

<Meta title="Docs/Components README" />

<Readme />

0 comments on commit fb49452

Please sign in to comment.