-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(storybook): update storybook to v8
- Loading branch information
1 parent
b764b9d
commit 384e7f7
Showing
110 changed files
with
25,078 additions
and
43,970 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import path from 'node:path' | ||
import { loadConfigFromFile, mergeConfig } from 'vite' | ||
|
||
export default { | ||
stories: [ | ||
'../docs/**/*.mdx', | ||
'../stories/**/*.mdx', | ||
'../src/**/*.stories.@(js|jsx|ts|tsx)', | ||
], | ||
|
||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-mdx-gfm', | ||
], | ||
|
||
core: { | ||
disableTelemetry: true, | ||
}, | ||
|
||
framework: { | ||
name: '@storybook/vue3-vite', | ||
options: { | ||
docgen: 'vue-component-meta', | ||
}, | ||
}, | ||
|
||
async viteFinal(config, { configType }) { | ||
const { config: userConfig } = await loadConfigFromFile( | ||
path.resolve(__dirname, '..', 'vite.config.js'), | ||
) | ||
return mergeConfig(config, { | ||
...userConfig, | ||
base: '/vue-uswds/', | ||
// manually specify plugins to avoid conflict | ||
plugins: [], | ||
}) | ||
}, | ||
docs: {}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/guide/0-installation.stories.mdx → docs/guide/0-installation.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
docs/guide/1-configuration.stories.mdx → docs/guide/1-configuration.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
docs/guide/2-configuration.stories.mdx → docs/guide/2-configuration.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.