From 2a5e79f21508ec19df3baad3eb6b67f43a272b19 Mon Sep 17 00:00:00 2001 From: Anders Date: Tue, 5 Nov 2024 16:15:43 +0100 Subject: [PATCH] =?UTF-8?q?docs:=20sm=C3=A5justeringer=20i=20storybook?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .storybook/main.ts | 2 +- .storybook/preview.tsx | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.storybook/main.ts b/.storybook/main.ts index 6e6b47373e..57b4478b0b 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -12,8 +12,8 @@ function getAbsolutePath(value: string): any { const config: StorybookConfig = { stories: [ - '../packages/**/*.stories.@(js|jsx|mjs|ts|tsx)', '../packages/**/*.@(mdx)', + '../packages/**/*.stories.@(js|jsx|mjs|ts|tsx)', ], addons: [ getAbsolutePath('@storybook/addon-links'), diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx index 0465e7bb66..1466581f1e 100644 --- a/.storybook/preview.tsx +++ b/.storybook/preview.tsx @@ -41,9 +41,15 @@ const preview: Preview = { date: /Date$/i, }, }, + viewMode: 'docs', docs: { components, }, + options: { + storySort: { + method: 'alphabetical', + }, + }, }, decorators: [ (Story, context) => {