Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/docsite-publish-ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ jobs:
if: steps.affected_storybooks_count.outputs.value > 0
run: |
rm -rf _pages
mkdir -p _pages/react _pages/charts _pages/web-components
mkdir -p _pages/react _pages/charts _pages/web-components _pages/headless

cp -R apps/public-docsite-v9/dist/react/* _pages/react/
cp -R apps/chart-docsite/dist/storybook/* _pages/charts/
cp -R packages/web-components/dist/storybook/* _pages/web-components
cp -R packages/react-components/react-headless-components-preview/stories/dist/storybook/* _pages/headless/

- name: Upload Pages Artifact
if: steps.affected_storybooks_count.outputs.value > 0
Expand Down
2 changes: 1 addition & 1 deletion apps/public-docsite-v9/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build-storybook",
"build-storybook:react",
{
"projects": ["chart-docsite", "web-components"],
"projects": ["chart-docsite", "web-components", "react-headless-components-preview-stories"],
"target": "build-storybook:docsite"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ module.exports = /** @type {Omit<import('../../../../../.storybook/main'), 'type
...rootMain,
stories: [...rootMain.stories, '../src/**/*.mdx', '../src/**/index.stories.@(ts|tsx)'],
addons: [...rootMain.addons],
build: {
previewUrl: process.env.DEPLOY_PATH,
},
webpackFinal: (config, options) => {
const localConfig = { ...rootMain.webpackFinal(config, options) };

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "0.0.0",
"private": true,
"scripts": {
"build-storybook": "storybook build -o ./dist/storybook"
"build-storybook": "storybook build -o ./dist/storybook",
"build-storybook:docsite": "cross-env DEPLOY_PATH=/headless/ storybook build -o ./dist/storybook --docs"
},
"devDependencies": {}
}
Loading