Skip to content

Remove external storybook deps #205

Merged
merged 2 commits into from
Apr 19, 2021
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
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.