diff --git a/.storybook/manager.js b/.storybook/manager.js index a6bbec7de..1e0d97768 100644 --- a/.storybook/manager.js +++ b/.storybook/manager.js @@ -3,4 +3,7 @@ import storybookCustomTheme from './storybook-custom-theme'; addons.setConfig({ theme: storybookCustomTheme, + sidebar: { + showRoots: true, + }, }); diff --git a/.storybook/preview.js b/.storybook/preview.js index aee1e7439..68af97186 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -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;