Skip to content

Commit

Permalink
Consolidate Styleguidist config files and update npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbel committed Sep 4, 2020
1 parent 2b3ebc4 commit e8a8928
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"scripts": {
"start:frontend": "react-scripts start",
"start:api": "cd api/ && venv/bin/gunicorn -b 127.0.0.1:5000 api:app",
"start:docs": "npx styleguidist server --open",
"start:docs": "npx styleguidist server --open --config styleguidist/styleguide.config.js",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions styleguide.config.js → styleguidist/styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ module.exports = {
*/
require: [
// Material UI Resources
path.join(__dirname, "docs/Styleguidist/material-icon.css"),
path.join(__dirname, "docs/Styleguidist/roboto-font.css"),
path.join(__dirname, "./material-icon.css"),
path.join(__dirname, "./roboto-font.css"),
],

/**
Expand All @@ -61,11 +61,11 @@ module.exports = {
sections: [
{
name: "Getting Started",
content: "./docs/Styleguidist/Introduction.md",
content: "../docs/Styleguidist/Introduction.md",
},
{
name: "Components",
components: 'src/components/**/[A-Z]*.js',
components: '../src/components/**/[A-Z]*.js',
}
],

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit e8a8928

Please sign in to comment.