Skip to content

Commit 6968839

Browse files
committed
docs: add readme to storybook
1 parent 03db0cf commit 6968839

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.storybook/main.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ const config: StorybookConfig = {
2525
'@fanciers/echarts-react': path.resolve(__dirname, '../src'),
2626
},
2727
},
28+
module: {
29+
rules: [
30+
{ test: /\.md$/, use: '@storybook/addon-docs/mdx-loader' }, //
31+
],
32+
},
2833
},
2934
},
3035
});

.storybook/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const preview: Preview = {
1616
},
1717
options: {
1818
storySort: {
19-
order: ['Line', 'Bar'],
19+
order: ['README', 'Line', 'Bar'],
2020
},
2121
},
2222
} satisfies (CoreTypes & DocsTypes)['parameters'],

stories/README.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../README.md

0 commit comments

Comments
 (0)