Skip to content

Commit

Permalink
Update storybook template (#61)
Browse files Browse the repository at this point in the history
Extend storybook template to include *.mdx files and removed support for
*.stories.mdx files, as with storybook v7 ***.stories.mdx files are
deprecated**. They'll not be supported in a future version anymore:

Quote from [storybook](https://storybook.js.org/docs/writing-docs/mdx):

> If you’re coming from a previous version of Storybook, you might be
accustomed to using MDX both for documentation and for defining stories
in the same .stories.mdx file. We’ve deprecated this functionality and
plan to remove it in a future version of Storybook.
  • Loading branch information
puehringer authored Mar 1, 2024
2 parents d5247d8 + 00c8985 commit a366f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/storybook.main.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @type {import('@storybook/react-webpack5').StorybookConfig}
*/
module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
Expand Down

0 comments on commit a366f0e

Please sign in to comment.