From 98d4ba12f3087eda0aa67fba69722b6a77acb24d Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Wed, 1 Feb 2023 15:53:30 +1100 Subject: [PATCH] Turn on autodocs for CSF with attached meta. For https://github.com/storybookjs/storybook/issues/20864 --- code/addons/docs/template/stories/docs2/MetaOf.mdx | 2 +- code/addons/docs/template/stories/docs2/button.stories.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/code/addons/docs/template/stories/docs2/MetaOf.mdx b/code/addons/docs/template/stories/docs2/MetaOf.mdx index 7bb445673c5c..4f15e0632ee1 100644 --- a/code/addons/docs/template/stories/docs2/MetaOf.mdx +++ b/code/addons/docs/template/stories/docs2/MetaOf.mdx @@ -1,7 +1,7 @@ import { Meta, Story, Stories } from '@storybook/addon-docs'; import * as ButtonStories from './button.stories.ts'; - + # Docs with of diff --git a/code/addons/docs/template/stories/docs2/button.stories.ts b/code/addons/docs/template/stories/docs2/button.stories.ts index 14f45cee42df..fd516fe58721 100644 --- a/code/addons/docs/template/stories/docs2/button.stories.ts +++ b/code/addons/docs/template/stories/docs2/button.stories.ts @@ -2,6 +2,7 @@ import { global as globalThis } from '@storybook/global'; export default { component: globalThis.Components.Button, + tags: ['autodocs'], args: { onClick: () => console.log('clicked!') }, parameters: { chromatic: { disable: true },