mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 07:21:57 +08:00
And change semantics: `docsPage:true` = `autodocs: 'tag'` and `docsPage: 'automatic'` = `autodocs: true`.
29 lines
553 B
Plaintext
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',
|
|
},
|
|
};
|
|
```
|