Skip to content

Commit

Permalink
Docs(web-react): Rename standalone Storybook MDX files
Browse files Browse the repository at this point in the history
  * `stories` name in mdx name is deprecated
  * @see https://storybook.js.org/docs/7.5/writing-docs/mdx
  • Loading branch information
literat committed Mar 26, 2024
1 parent 61e0f9c commit fd3812d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { mergeConfig } from 'vite';
import markdownRawPlugin from 'vite-raw-plugin';

const config: StorybookViteConfig = {
stories: ['../packages/**/*.stories.mdx', '../packages/**/*.stories.@(ts|tsx)'],
stories: ['../packages/**/stories/**/*.mdx', '../packages/**/*.stories.@(ts|tsx)'],

addons: [
getAbsolutePath('@storybook/addon-links'),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta } from '@storybook/addon-docs';
import { Meta } from '@storybook/blocks';

<Meta title="Introduction/Branding" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Meta } from '@storybook/addon-docs';
import { Button } from '../../src/components/Button';
import { Meta } from '@storybook/blocks';

<Meta title="Introduction/Installation" />

Expand Down Expand Up @@ -90,5 +89,4 @@ import { Container, Stack, TextField, CheckboxField, Button } from '@lmc-eu/spir
<Button isBlock>Login</Button>
</Stack>
</Container>

```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta } from '@storybook/addon-docs';
import { Meta } from '@storybook/blocks';

<Meta title="Introduction/Styling" />

Expand Down

0 comments on commit fd3812d

Please sign in to comment.