Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docsite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
working-directory: docs/

- name: Build Storybook
run: yarn build-storybook
run: IS_OFFICIAL=1 yarn build-storybook
# Copy the storybook static site into the docsite output and copy the assets from the main repo into the assets dir of the docsite output.
# It needs to be in assets/assets because assets/ gets served from the / root of the site and storybook expects to find assets in /assets/
- name: Copy Storybook to docs
Expand Down
12 changes: 12 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,17 @@ const config: StorybookConfig = {
},

staticDirs: [{ from: "../assets", to: "/assets" }],
managerHead: (head) => `
${head}
<link rel="shortcut icon" href="/assets/waveterm-logo-with-bg.ico" />
<link rel="icon" type="image/png" href="/assets/waveterm-logo-with-bg.png" sizes="250x250" />
<style>
.sidebar-header img {
max-width: 150px !important;
max-height: 100px !important;
}
</style>
<base href="${process.env.IS_OFFICIAL ? "/storybook" : "/"}" />
`,
};
export default config;
8 changes: 0 additions & 8 deletions .storybook/manager-head.html

This file was deleted.