From 7ce927fc0f849bc82e18b075a92229cd91708c43 Mon Sep 17 00:00:00 2001 From: Mario Hamann Date: Mon, 22 Apr 2024 09:47:34 +0200 Subject: [PATCH] docs: optimize code preview + add table of contents (#2605) Co-authored-by: Jeri Peier --- .storybook/preview.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.storybook/preview.ts b/.storybook/preview.ts index eacc2588b4..f956fa43f6 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -44,6 +44,13 @@ export const parameters = { breakpointNames, debounceTimeout: 10, }, + docs: { + toc: { + ignoreSelector: '.docs-story h2', + headingSelector: 'h2', + }, + source: { format: 'html' }, + }, viewport: { viewports: storybookViewports }, options: { storySort: {