Skip to content

Commit

Permalink
docs: expose getting started and vision in storybook (#2616)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB authored Apr 24, 2024
1 parent cf97ecd commit 32881a9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { StorybookConfig } from '@storybook/web-components-vite';
import { type BuildOptions, type UserConfig, mergeConfig } from 'vite';

const config: StorybookConfig = {
stories: ['../src/**/*.stories.ts'],
stories: ['../src/**/*.mdx', '../src/**/*.stories.ts'],
addons: ['@storybook/addon-essentials', '@storybook/addon-a11y', '@storybook/addon-interactions'],
framework: {
name: '@storybook/web-components-vite',
Expand Down
10 changes: 1 addition & 9 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,7 @@ export const parameters = {
storySort: {
// Story section order.
// https://storybook.js.org/docs/react/writing-stories/naming-components-and-hierarchy#sorting-stories
order: [
'pages',
['home', 'home personalized'],
'components',
['*', 'form elements', 'cards', 'layout'],
'styles',
'timetable',
'internals',
],
order: ['introduction', 'pages', 'components', 'styles', 'timetable', 'internals'],
},
},
};
Expand Down
7 changes: 7 additions & 0 deletions src/storybook/docs/getting-started.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Markdown, Meta } from '@storybook/blocks';

import GettingStarted from '../../../docs/GETTING_STARTED.md?raw';

<Meta title="introduction/Getting Started" />

<Markdown>{GettingStarted}</Markdown>
7 changes: 7 additions & 0 deletions src/storybook/docs/vision.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Markdown, Meta } from '@storybook/blocks';

import Vision from '../../../docs/VISION.md?raw';

<Meta title="introduction/Vision" />

<Markdown>{Vision}</Markdown>

0 comments on commit 32881a9

Please sign in to comment.