Skip to content

Commit 3a30d69

Browse files
committed
🚀 publish storybook composition
1 parent eaf7126 commit 3a30d69

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.storybook/main.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import type { StorybookConfig } from '@storybook/web-components-vite'
22
import path from 'path'
33

4+
export const references = {
5+
"title": "jsonresume-theme-microdata",
6+
"url": "https://6632f42ef9bacea464588c02-tkarrbykzd.chromatic.com/",
7+
expanded: false,
8+
}
9+
410
const config: StorybookConfig = {
511
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
612
addons: [
@@ -17,6 +23,7 @@ const config: StorybookConfig = {
1723
docs: {
1824
autodocs: 'tag',
1925
},
26+
refs: [references],
2027
async viteFinal(config, options) {
2128
// Ensures that the cache directory is inside the project directory
2229
config.cacheDir = path.join(__dirname, '../node_modules/.vite-storybook')

.storybook/manager.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { addons } from '@storybook/manager-api'
2+
3+
addons.setConfig({
4+
sidebar: {
5+
showRoots: false,
6+
collapsedRoots: ['other'],
7+
},
8+
})

src/web-component.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ${json.basics.summary}`,
2929
}
3030

3131
export default {
32-
title: 'JsonResume',
32+
title: 'jsonresume-component',
3333
component: 'json-resume',
3434
argTypes,
3535
};

0 commit comments

Comments
 (0)