Skip to content

Commit

Permalink
chore(demo): updated demo stories menu (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
makhnatkin authored Nov 22, 2024
1 parent da8fef7 commit 215f354
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ import {themes} from './theme';

addons.setConfig({
theme: themes.light,
sidebar: {
collapsedRoots: ['docs'],
},
});
2 changes: 1 addition & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const preview: Preview = {
},
options: {
storySort: {
order: ['Docs', 'Markdown Editor', ['Playground', 'Presets', '*'], '*'],
order: ['Playground', 'Docs', 'Extensions', ['Presets', '*'], '*'],
},
},
controls: {
Expand Down
2 changes: 1 addition & 1 deletion demo/stories/markdown/Markdown.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const DefinitionList: StoryObj<typeof component> = {
};

export default {
title: 'Markdown Editor / Markdown examples',
title: 'Extensions / Markdown',
component,
args: args,
parameters: {
Expand Down
2 changes: 1 addition & 1 deletion demo/stories/playground/Playground.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const Story: StoryObj<typeof component> = {};
Story.storyName = 'Playground';

const meta: Meta<PlaygroundProps> = {
title: 'Markdown Editor / Playground',
title: 'Playground',
component: component,
args: args,
beforeEach: (context) => {
Expand Down
2 changes: 1 addition & 1 deletion demo/stories/presets/Presets.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const Full: StoryObj<typeof component> = {

export default {
component,
title: 'Markdown Editor / Presets',
title: 'Extensions / Presets',
args: {
settingsVisible: true,
allowHTML: true,
Expand Down
2 changes: 1 addition & 1 deletion demo/stories/yfm/YFM.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {excludedControls} from '../../defaults/excluded-controls';
import {markup} from './content';

const meta: Meta<PlaygroundMiniProps> = {
title: 'Markdown Editor / YFM examples',
title: 'Extensions / YFM',
component: PlaygroundMini,
args: args,
parameters: {
Expand Down

0 comments on commit 215f354

Please sign in to comment.