🔧(react) remove Misc stories from Storybook sidebar

These files include stories only used from regular documentation,
they have no other purpose so we decided to hide them.
This commit is contained in:
Nathan Vasse
2024-03-25 16:29:03 +01:00
committed by NathanVss
parent dd1f2be22c
commit de8c9dace7
2 changed files with 11 additions and 1 deletions

View File

@@ -32,3 +32,13 @@ addons.register('theme-synchronizer', () => {
},
});
});
addons.setConfig({
sidebar: {
filters: {
hidden: item => {
return !item.title.startsWith('Misc/');
}
}
}
});

View File

@@ -42,7 +42,7 @@ const preview: Preview = {
},
options: {
storySort: (a, b) => {
const roots = ['Getting Started', 'Components', 'Migrating', 'Misc'];
const roots = ['Getting Started', 'Components', 'Migrating'];
const gettingStartedOrder = [
'Installation',
'First steps',