storybook/docs/snippets/common/storybook-auto-docs-full-config.ts.mdx
Tom Coleman 427ec4433d Rename docsPage to autodocs
And change semantics: `docsPage:true` = `autodocs: 'tag'` and `docsPage: 'automatic'` = `autodocs: true`.
2022-12-21 21:49:57 +11:00

30 lines
747 B
Plaintext

```ts
// .storybook/main.ts
// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-webpack5)
import type { StorybookConfig } from '@storybook/your-framework';
const config: StorybookConfig = {
stories: ['../src/**/*.stories.@(js|ts)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
],
framework: {
// The name of the framework you want to use goes here
name: '@storybook/your-framework',
options: {},
},
docs: {
enabled: false,
defaultName: 'Documentation',
//👇 Use only one of the following options to auto-generate documentation
autodocs: true,
autodocs: 'tag',
},
};
export default config;
```