Skip to content

Commit

Permalink
feat: added getting started. removed examples nav
Browse files Browse the repository at this point in the history
  • Loading branch information
ifrost1 committed Jul 21, 2022
1 parent 7bc84d5 commit 3a722ba
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .storybook/components/Docs/Documents.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from 'react';
import { Documentation } from './Documentation';
import Code from '../../../docs/CODE_GUIDELINES.md';
import ComponentDocs from '../../../docs/COMPONENTS.md';
import GettingStartedDocs from '../../../docs/GETTING_STARTED.md';
import IconDocs from '../../../docs/ICONS.md';
import LayoutDocs from '../../../docs/LAYOUT.md';
import TokenDocs from '../../../docs/TOKENS.md';
Expand All @@ -21,6 +22,11 @@ export default {

type Args = React.ComponentProps<typeof Documentation>;

export const GettingStarted: StoryObj<Args> = {
args: {
children: <GettingStartedDocs />,
},
};
export const CodeGuidelines: StoryObj<Args> = {
args: {
children: <Code />,
Expand Down
2 changes: 1 addition & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const SVGSpritemapPlugin = require('svg-spritemap-webpack-plugin');
*/
module.exports = {
stories: [
'../docs',
'./components/**/*.stories.@(js|jsx|ts|tsx)',
'./components/**/*.stories.mdx',
'../docs',
'../src/components',
'./**/*.stories.@(js|jsx|ts|tsx)',
'./**/*.stories.mdx',
Expand Down
1 change: 1 addition & 0 deletions docs/GETTING_STARTED.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Getting Started
2 changes: 1 addition & 1 deletion src/components/Avatar/Avatar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from 'react';
import { Avatar } from './Avatar';

export default {
title: 'Example/Avatar',
title: 'Atoms/Media/Avatar',
component: Avatar,
parameters: {
badges: [BADGE.BETA],
Expand Down
2 changes: 1 addition & 1 deletion src/components/AvatarImage/AvatarImage.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from 'react';
import { AvatarImage } from './AvatarImage';

export default {
title: 'Example/AvatarImage',
title: 'Atoms/Media/AvatarImage',
component: AvatarImage,
parameters: {
badges: [BADGE.BETA],
Expand Down
2 changes: 1 addition & 1 deletion src/components/ButtonDropdown/ButtonDropdown.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { DropdownMenuItem } from '../DropdownMenuItem/DropdownMenuItem';
import { Icon } from '../Icon/Icon';

export default {
title: 'Example/ButtonDropdown',
title: 'Organisms/Interactive/ButtonDropdown',
parameters: {
layout: 'centered',
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/DataBar/DataBar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Button from '../Button';
import ButtonGroup from '../ButtonGroup';

export default {
title: 'Example/DataBar',
title: 'Molecules/Data/DataBar',
component: DataBar,
args: {
label: 'Data bar',
Expand Down

0 comments on commit 3a722ba

Please sign in to comment.