Storybook 8 fixes (#3937)

* Add globs for auto-generated CSF screenshot stories to main.js

* Remove unneeded mdx files for screenshots

* Glob for stories.js instead of just js files in the doc pages directory

* Might as well update it to 8.3 while we're at it

* Update knip config file to make it happy

* Fix linter warning

---------

Co-authored-by: Gabe Kangas <gabek@real-ity.com>
This commit is contained in:
mahmed2000
2024-09-27 21:25:38 +00:00
committed by Gabe Kangas
parent f424fe6dae
commit 3d9bd9d353
12 changed files with 2 additions and 92 deletions

View File

@@ -3,7 +3,7 @@ module.exports = {
previewMdx2: true,
},
stories: ['../.storybook/stories-category-doc-pages/**/*.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)', '../components/**/*.stories.@(js|jsx|ts|tsx)', '../pages/**/*.stories.@(js|jsx|ts|tsx)'],
stories: ['../.storybook/stories-category-doc-pages/**/*.@(mdx|stories.js)', '../stories/**/*.stories.@(js|jsx|ts|tsx)', '../components/**/*.stories.@(js|jsx|ts|tsx)', '../pages/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
@@ -117,7 +117,5 @@ module.exports = {
staticDirs: ['../public', '../../static', './story-assets'],
docs: {
autodocs: false,
},
docs: {},
};