From a5abbecf39bb17433b5b007e075de1e891efa9e5 Mon Sep 17 00:00:00 2001 From: Danielle Flinn <43477473+danielleflinn@users.noreply.github.com> Date: Tue, 18 Oct 2022 07:54:27 -0700 Subject: [PATCH] Storybook docs structure (#3755) * updated naming of common to documentation * Add button docs * updated sort order Documentation is now above the component library and allows the general pages to come before the component specific ones. * fixed typos * updated file name * fixed typo in introduction.stories.mdx * updated banner.stories.mdx to match new docs structure * remove plural in button docs --- .storybook/preview.js | 5 ++ .../src/stories/Introduction.stories.mdx | 4 +- ...er.stories.mdx => banner-docs.stories.mdx} | 2 +- .../src/stories/button-docs.stories.mdx | 73 +++++++++++++++++++ .../components/src/stories/colors.stories.mdx | 2 +- libs/components/src/stories/icons.stories.mdx | 2 +- 6 files changed, 83 insertions(+), 5 deletions(-) rename libs/components/src/stories/{banner.stories.mdx => banner-docs.stories.mdx} (97%) create mode 100644 libs/components/src/stories/button-docs.stories.mdx diff --git a/.storybook/preview.js b/.storybook/preview.js index 8bc2510a08..754e8d2b88 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -12,6 +12,11 @@ export const parameters = { date: /Date$/, }, }, + options: { + storySort: { + order: ["Documentation", ["Introduction", "Colors", "Icons"], "Component Library"], + }, + }, docs: { inlineStories: true }, }; diff --git a/libs/components/src/stories/Introduction.stories.mdx b/libs/components/src/stories/Introduction.stories.mdx index 7b175b415d..f9cc381398 100644 --- a/libs/components/src/stories/Introduction.stories.mdx +++ b/libs/components/src/stories/Introduction.stories.mdx @@ -1,6 +1,6 @@ import { Meta } from "@storybook/addon-docs"; - +