Skip to content

Commit

Permalink
refactor: order categories
Browse files Browse the repository at this point in the history
  • Loading branch information
bpetetot committed Nov 14, 2024
1 parent 3cdd91e commit 5d7cab0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ import storybookCustomTheme from './storybook-custom-theme';

addons.setConfig({
theme: storybookCustomTheme,
sidebar: {
showRoots: true,
},
});
34 changes: 23 additions & 11 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,35 @@ const preview = {
options: {
storySort: {
order: [
'Utiliser Pix UI',
['Installation', 'Utiliser un composant'],
'Développement',
'CHANGELOG',
'Pix UI',
[
'Design System',
'Créer un composant',
'Bonnes pratiques',
'Breaking changes',
'Faire une release',
'Architecture',
'Storybook',
'Installation',
'Utiliser un composant',
'Développement',
[
'Design System',
'Créer un composant',
'Bonnes pratiques',
'Breaking changes',
'Faire une release',
'Architecture',
'Storybook',
],
],
'Design Tokens',
'Actions',
'Forms',
'Navigation',
'Feedback',
'Data display',
'Overlay',
'Other',
],
},
},
},

tags: ['autodocs']
tags: ['autodocs'],
};
export default preview;

0 comments on commit 5d7cab0

Please sign in to comment.