Skip to content

Commit

Permalink
Merge pull request #205 from ECN/remove-external-storybook-deps
Browse files Browse the repository at this point in the history
Remove external storybook deps
  • Loading branch information
campb303 authored Apr 19, 2021
2 parents d691d56 + c8a7bdc commit 2a12664
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
STORYBOOK_BRAND_URL="https://engineering.purdue.edu/webqueue/webqueue2/build"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"scripts": {
"start:frontend": "react-scripts start",
"start:api": "cd api/ && venv/bin/gunicorn -b 127.0.0.1:5000 api:app",
"start:docs": "start-storybook -p 6006 -s public -c storybook-config",
"start:docs": "start-storybook -p 6006 -s public -c storybook-config --no-manager-cache",
"build:frontend": "react-scripts build",
"build:docs": "build-storybook -s public -c storybook-config -o build-docs",
"kill:frontend": "pgrep -u $(whoami) -f 'react-scripts/scripts/start.js' -d ' ' | xargs kill -9",
Expand Down
9 changes: 5 additions & 4 deletions storybook-config/DocsTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
* @see https://storybook.js.org/docs/react/configure/theming#create-a-theme-quickstart
* @see https://storybook.js.org/docs/react/configure/features-and-behavior
*/
import { create } from '@storybook/theming';
import { create } from "@storybook/theming";
import brandImage from "../public/logo192.png";

export default create({
base: 'light',
brandTitle: 'webqueue2 Front End Docs',
brandUrl: 'https://engineering.purdue.edu/webqueue/webqueue2/build',
brandImage: 'https://github.itap.purdue.edu/ECN/webqueue2-frontend/blob/master/public/logo192.png?raw=true',
brandTitle: "webqueue2 Storybook",
brandUrl: process.env.STORYBOOK_BRAND_URL,
brandImage: brandImage,
appBg: 'white'
});
Binary file removed styleguidist/assetsDir/ItemBodyView_Loaded.png
Binary file not shown.
Binary file removed styleguidist/assetsDir/ItemBodyView_Loading.gif
Binary file not shown.

0 comments on commit 2a12664

Please sign in to comment.