Skip to content

Commit

Permalink
don't pre-combine tags, add tags stories
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Aug 27, 2024
1 parent 01768c8 commit a14121f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/indexer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const indexer: Indexer = {
exportName,
name,
title: metaTitle,
tags: combineTags(...metaTags, ...tags),
tags: [...metaTags, ...tags],
} satisfies IndexInput;
});
},
Expand Down
19 changes: 19 additions & 0 deletions tests/stories/Tags.stories.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<script context="module">
import { defineMeta } from '@storybook/addon-svelte-csf';
const { Story } = defineMeta({
title: 'Tags',
parameters: {
controls: { disable: true },
},
tags: ['!dev', '!autodocs', '!test'],
});
</script>

<Story name="No Tags">No tags</Story>

<Story name="With Autodocs" tags={['autodocs']}>With autodocs</Story>

<Story name="With Dev" tags={['dev']}>With dev</Story>

<Story name="With Test" tags={['test']}>With test</Story>

0 comments on commit a14121f

Please sign in to comment.