storybook/docs/snippets/common/storybook-main-config-remark-options.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

34 lines
710 B
Plaintext

```ts
// .storybook/main.ts
import remarkGfm from 'remark-gfm';
// 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: [
// Other addons go here
{
name: '@storybook/addon-docs',
options: {
mdxCompileOptions: {
remarkPlugins: [remarkGfm],
},
},
},
],
framework: {
// The name of the framework you want to use goes here
name: '@storybook/your-framework',
options: {},
},
docs: {
autodocs: 'tag',
},
};
export default config;
```