Skip to content

Commit

Permalink
Enable autodoc in Storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph committed Oct 3, 2023
1 parent 88d6133 commit 0c622b5
Show file tree
Hide file tree
Showing 24 changed files with 23 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sparkle/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,5 @@ const config: StorybookConfig = {
name: "@storybook/react-webpack5",
options: {},
},
docs: {
autodocs: "tag",
},
};
export default config;
1 change: 1 addition & 0 deletions sparkle/src/stories/Avatar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Avatar } from "../index_with_tw_base";
const meta = {
title: "Atoms/Avatar",
component: Avatar,
tags: ["autodocs"],
} satisfies Meta<typeof Avatar>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/BarHeader.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Avatar, BarHeader, PageHeader } from "../index_with_tw_base";
const meta = {
title: "Molecule/BarHeader",
component: BarHeader,
tags: ["autodocs"],
} satisfies Meta<typeof BarHeader>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Button, Cog6ToothIcon } from "../index_with_tw_base";
const meta = {
title: "Atoms/Button",
component: Button,
tags: ["autodocs"],
} satisfies Meta<typeof Button>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/Checkbox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Checkbox } from "../index_with_tw_base";
const meta = {
title: "Atoms/Checkbox",
component: Checkbox,
tags: ["autodocs"],
} satisfies Meta<typeof Checkbox>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/Chip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Chip } from "../index_with_tw_base";
const meta = {
title: "Atoms/Chip",
component: Chip,
tags: ["autodocs"],
} satisfies Meta<typeof Chip>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/Collapsible.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Collapsible } from "../index_with_tw_base";
const meta = {
title: "Atoms/Collapsible",
component: Collapsible,
tags: ["autodocs"],
} satisfies Meta<typeof Collapsible>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/ContextItem.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
const meta = {
title: "Molecule/ContextItem",
component: ContextItem,
tags: ["autodocs"],
} satisfies Meta<typeof ContextItem>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/DropdownMenu.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
const meta = {
title: "Atoms/DropdownMenu",
component: DropdownMenu,
tags: ["autodocs"],
} satisfies Meta<typeof DropdownMenu>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/Icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ChatBubbleBottomCenterTextIcon, Icon } from "../index_with_tw_base";
const meta = {
title: "Atoms/Icon",
component: Icon,
tags: ["autodocs"],
} satisfies Meta<typeof Icon>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/IconButton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Cog6ToothIcon, IconButton } from "../index_with_tw_base";
const meta = {
title: "Atoms/IconButton",
component: IconButton,
tags: ["autodocs"],
} satisfies Meta<typeof IconButton>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/IconToggleButton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
const meta = {
title: "Atoms/IconToggleButton",
component: IconToggleButton,
tags: ["autodocs"],
} satisfies Meta<typeof IconToggleButton>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/Input.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Input } from "../index_with_tw_base";
const meta = {
title: "Atoms/Input",
component: Input,
tags: ["autodocs"],
} satisfies Meta<typeof Input>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/Item.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Cog6ToothIcon } from "../index_with_tw_base";
const meta = {
title: "Atoms/Item",
component: Item,
tags: ["autodocs"],
} satisfies Meta<typeof Item>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/Modal.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Button, Modal } from "../index_with_tw_base";
const meta = {
title: "Molecule/Modal",
component: Modal,
tags: ["autodocs"],
} satisfies Meta<typeof Modal>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/Page.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
const meta = {
title: "Template/Page",
component: Page,
tags: ["autodocs"],
} satisfies Meta<typeof Page>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/PageHeader.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
const meta = {
title: "DEPRECATED/PageHeader",
component: PageHeader,
tags: ["autodocs"],
} satisfies Meta<typeof PageHeader>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/Searchbar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Searchbar } from "../index_with_tw_base";
const meta = {
title: "Atoms/Searchbar",
component: Searchbar,
tags: ["autodocs"],
} satisfies Meta<typeof Searchbar>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/SectionHeader.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
const meta = {
title: "DEPRECATED/SectionHeader",
component: SectionHeader,
tags: ["autodocs"],
} satisfies Meta<typeof SectionHeader>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/SliderToggle.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { SliderToggle } from "../index_with_tw_base";
const meta = {
title: "Atoms/SliderToggle",
component: SliderToggle,
tags: ["autodocs"],
} satisfies Meta<typeof SliderToggle>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/Spinner.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Spinner } from "../index_with_tw_base";
const meta = {
title: "Atoms/Spinner",
component: Spinner,
tags: ["autodocs"],
} satisfies Meta<typeof Spinner>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/Tab.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
const meta = {
title: "Atoms/Tab",
component: Tab,
tags: ["autodocs"],
} satisfies Meta<typeof Tab>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/Tooltip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Tooltip } from "../index_with_tw_base";
const meta = {
title: "Atoms/Tooltip",
component: Tooltip,
tags: ["autodocs"],
} satisfies Meta<typeof Tooltip>;

export default meta;
Expand Down
1 change: 1 addition & 0 deletions sparkle/src/stories/Tree.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Tree } from "../index_with_tw_base";
const meta = {
title: "Atoms/Tree",
component: Tree,
tags: ["autodocs"],
} satisfies Meta<typeof Tree>;

export default meta;
Expand Down

0 comments on commit 0c622b5

Please sign in to comment.