Skip to content

Commit 7b18ba0

Browse files
authored
docs: fix docs starters storybook autodocs config (adobe#9829)
1 parent ffb1a9d commit 7b18ba0

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

starters/docs/.storybook/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function getAbsolutePath(value) {
1212
const config = {
1313
stories: ["../stories/*.stories.@(js|jsx|mjs|ts|tsx)"],
1414
addons: [
15+
getAbsolutePath("@storybook/addon-docs"),
1516
getAbsolutePath("@storybook/addon-webpack5-compiler-babel"),
1617
],
1718
framework: {

starters/docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,18 @@
1414
"@babel/preset-env": "^7.28.3",
1515
"@babel/preset-react": "^7.24.1",
1616
"@babel/preset-typescript": "^7.27.1",
17+
"@storybook/addon-docs": "^9.0.18",
1718
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
1819
"@storybook/react": "^9.0.18",
1920
"@storybook/react-webpack5": "^9.0.18",
21+
"@vueless/storybook-dark-mode": "^9.0.6",
2022
"clsx": "^2.1.1",
2123
"lightningcss-loader": "^2.1.0",
2224
"lucide-react": "^0.517.0",
2325
"react": "^19.2.0",
2426
"react-aria-components": "^1.14.0",
2527
"react-dom": "^19.2.0",
2628
"storybook": "^9.0.18",
27-
"@vueless/storybook-dark-mode": "^9.0.6",
2829
"typescript": "^5.8.2"
2930
},
3031
"resolutions": {

starters/tailwind/.storybook/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const config = {
44
"../stories/**/*.mdx",
55
"../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)",
66
],
7-
addons: [],
7+
addons: ["@storybook/addon-docs"],
88
framework: {
99
name: "@storybook/react-vite",
1010
options: {},

starters/tailwind/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"packageManager": "yarn@4.2.2",
66
"devDependencies": {
77
"@babel/preset-react": "^7.24.1",
8+
"@storybook/addon-docs": "^9.0.18",
89
"@storybook/react": "^9.0.18",
910
"@storybook/react-vite": "^9.0.18",
1011
"@tailwindcss/postcss": "^4.0.0",

0 commit comments

Comments
 (0)