Skip to content

Commit

Permalink
Merge pull request #618 from pixiv/mimo/storybook-logo-img-src
Browse files Browse the repository at this point in the history
add storybook static directory
  • Loading branch information
mimokmt authored Aug 9, 2024
2 parents dd8f8de + 6d5bed7 commit e5d4759
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const { promisify } = require('util')
const glob = promisify(require('glob'))
const { viteCommonjs } = require('@originjs/vite-plugin-commonjs')

/** @type {import('@storybook/react-vite').StorybookConfig}*/
module.exports = {
stories: [
'../packages/**/*.mdx',
Expand Down Expand Up @@ -114,6 +115,23 @@ module.exports = {
docs: {
autodocs: true,
},
staticDirs: ['./static'],
managerHead: (head) => `${head}
<title>Charcoal ドキュメント</title>
<meta
property="description"
content="ピクシブ株式会社のデザインシステム charcoal のドキュメントサイト"
/>
<meta property="og:url" content="" />
<meta property="og:title" content="charcoal"} />
<meta property="og:site_name" content="Charcoal ドキュメント" />
<meta
property="og:description"
content="ピクシブ株式会社のデザインシステム charcoal のドキュメントサイト"
/>
<meta property="og:type" content="website" />
<meta property="og:image" content="/charcoal-ogp.jpg" />
`,
}

const packagesDir = path.resolve(__dirname, '../packages')
Expand Down
2 changes: 1 addition & 1 deletion .storybook/src/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Meta, Story } from '@storybook/addon-docs'

<Meta title="README" />

![charcoal logo](https://charcoal-web.pixiv.design/charcoal-ogp.jpg)
![charcoal logo](/charcoal-ogp.jpg)

# Charcoal

Expand Down
Binary file added .storybook/static/charcoal-ogp.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e5d4759

Please sign in to comment.