From fb49452f4e2f4fa2bdb030f47a786a0d102f7bdf Mon Sep 17 00:00:00 2001 From: chad1008 <13856531+chad1008@users.noreply.github.com> Date: Mon, 1 May 2023 16:23:15 -0400 Subject: [PATCH] import README and CONTRIBUTING into Storybook --- storybook/main.js | 3 ++- storybook/stories/docs/contributing.story.mdx | 6 ++++++ storybook/stories/docs/readme.story.mdx | 6 ++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 storybook/stories/docs/contributing.story.mdx create mode 100644 storybook/stories/docs/readme.story.mdx diff --git a/storybook/main.js b/storybook/main.js index a0f5c333bb0d8..fa59c739ea3d5 100644 --- a/storybook/main.js +++ b/storybook/main.js @@ -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 = { @@ -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', diff --git a/storybook/stories/docs/contributing.story.mdx b/storybook/stories/docs/contributing.story.mdx new file mode 100644 index 0000000000000..9ec19b27490ef --- /dev/null +++ b/storybook/stories/docs/contributing.story.mdx @@ -0,0 +1,6 @@ +import { Meta } from '@storybook/addon-docs'; +import Contributing from '../../../packages/components/CONTRIBUTING.md'; + + + + diff --git a/storybook/stories/docs/readme.story.mdx b/storybook/stories/docs/readme.story.mdx new file mode 100644 index 0000000000000..2527b282af80f --- /dev/null +++ b/storybook/stories/docs/readme.story.mdx @@ -0,0 +1,6 @@ +import { Meta } from '@storybook/addon-docs'; +import Readme from '../../../packages/components/README.md'; + + + +