Skip to content

Commit

Permalink
🚀 publish storybook composition
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnath committed May 17, 2024
1 parent eaf7126 commit 3a30d69
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import type { StorybookConfig } from '@storybook/web-components-vite'
import path from 'path'

export const references = {
"title": "jsonresume-theme-microdata",
"url": "https://6632f42ef9bacea464588c02-tkarrbykzd.chromatic.com/",
expanded: false,
}

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
Expand All @@ -17,6 +23,7 @@ const config: StorybookConfig = {
docs: {
autodocs: 'tag',
},
refs: [references],
async viteFinal(config, options) {
// Ensures that the cache directory is inside the project directory
config.cacheDir = path.join(__dirname, '../node_modules/.vite-storybook')
Expand Down
8 changes: 8 additions & 0 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { addons } from '@storybook/manager-api'

addons.setConfig({
sidebar: {
showRoots: false,
collapsedRoots: ['other'],
},
})
2 changes: 1 addition & 1 deletion src/web-component.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ${json.basics.summary}`,
}

export default {
title: 'JsonResume',
title: 'jsonresume-component',
component: 'json-resume',
argTypes,
};
Expand Down

0 comments on commit 3a30d69

Please sign in to comment.