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

29 lines
553 B
Plaintext

```js
// .storybook/main.js
const remarkGfm = require('remark-gfm');
module.exports = {
stories: ['../src/**/*.stories.@(js|ts)'],
addons: [
// Other addons go here
{
name: '@storybook/addon-docs',
options: {
mdxCompileOptions: {
remarkPlugins: [remarkGfm],
},
},
},
],
framework: {
// Replace your-framework with the name of your framework (e.g., react-webpack5, vue3-webpack5)
name: '@storybook/your-framework',
options: {},
},
docs: {
autodocs: 'tag',
},
};
```