Skip to content

Commit

Permalink
docs: optimize code preview + add table of contents (#2605)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeri Peier <[email protected]>
  • Loading branch information
mariohamann and jeripeierSBB authored Apr 22, 2024
1 parent d6f8759 commit 7ce927f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 7ce927f

Please sign in to comment.