Skip to content

Commit

Permalink
docs: fix icon for storybook site (#2749)
Browse files Browse the repository at this point in the history
* docs: fix icon for storybook site

* moved staticDir confif from cli to main.js

* remove explicit favicon code in manager-head.html

---------

Co-authored-by: Nickii Miaro <[email protected]>
  • Loading branch information
gavinbarron and Mnickii authored Oct 5, 2023
1 parent 47f6377 commit 90b8736
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
presets: [],

stories: ['../stories/overview.stories.mdx', '../stories/**/*.stories.@(js|mdx)'],
staticDirs: ['../assets'],

addons: [
getAbsolutePath('storybook-version'),
Expand Down
1 change: 0 additions & 1 deletion .storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<meta name="theme-color" content="#F6F9FC" />
<link rel="shortcut icon" type="image/png" href="/favicon.png" />
<link rel="manifest" href="manifest.json" />
<script>
navigator.serviceWorker.register("sw.js");
Expand Down
Binary file added assets/favicon.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
"prettier:base": "prettier --parser typescript",
"prettier:check": "npm run prettier:base -- --check \"packages/**/*.{ts,tsx}\"",
"prettier:write": "npm run prettier:base -- --write \"packages/**/*.{ts,tsx}\"",
"storybook": "storybook dev -p 6006 -s ../assets",
"storybook": "storybook dev -p 6006",
"storybook:dev": "npm run build:compile && npm run analyze",
"storybook:watch": "npm-run-all --parallel watch storybook:bundle:watch storybook",
"storybook:bundle": "rollup -c ./.storybook/rollup.config.js",
"storybook:bundle:watch": "rollup -c ./.storybook/rollup.config.js --watch",
"storybook:build": "npm run storybook:bundle && npm run storybook:dev && storybook build -s assets && cpx .storybook/CNAME storybook-static && node ./.storybook/fix-title.js 'Microsoft Graph Toolkit Playground' ../",
"storybook:build": "npm run storybook:bundle && npm run storybook:dev && storybook build && cpx .storybook/CNAME storybook-static && node ./.storybook/fix-title.js 'Microsoft Graph Toolkit Playground' ../",
"setLicense": "gulp setLicense",
"test": "jest",
"version:tsc": "tsc -v"
Expand Down

0 comments on commit 90b8736

Please sign in to comment.