Skip to content

Commit

Permalink
Update to storybook 8 and fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aeagle committed Mar 31, 2024
1 parent cf549f3 commit d0c675c
Show file tree
Hide file tree
Showing 90 changed files with 21,664 additions and 24,979 deletions.
39 changes: 23 additions & 16 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
const path = require("path");

module.exports = {
stories: ["../src/**/*.stories.@(mdx|tsx)"],
addons: [
"@storybook/addon-actions",
"@storybook/addon-links",
{
name: "@storybook/addon-docs",
options: {
configureJSX: true,
inlineStories: false,
},
},
],
webpackFinal: async (config, { configType }) => {
stories: ["../src/**/*.@(mdx|stories.@(tsx))"],

addons: ["@storybook/addon-actions", "@storybook/addon-links", {
name: "@storybook/addon-docs",
options: {
configureJSX: true,
inlineStories: false,
},
}, "@storybook/addon-mdx-gfm", "@storybook/addon-webpack5-compiler-babel"],

webpackFinal: async (config, { configType }) => {
if (process.env.NODE === "production") {
config.output.publicPath = "/react-spaces/docs";
}
Expand All @@ -26,7 +24,16 @@ module.exports = {

return config;
},
reactOptions: {
strictMode: true,
},

framework: {
name: "@storybook/react-webpack5",

options: {
strictMode: true
}
},

docs: {
autodocs: true
}
};
7 changes: 0 additions & 7 deletions .storybook/preview.js

This file was deleted.

Loading

0 comments on commit d0c675c

Please sign in to comment.