mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 06:01:48 +08:00
29 lines
546 B
Plaintext
29 lines
546 B
Plaintext
```js
|
|
// .storybook/main.js
|
|
|
|
import remarkGfm from 'remark-gfm';
|
|
|
|
export default {
|
|
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',
|
|
},
|
|
};
|
|
```
|