Skip to content

Commit

Permalink
Update stylguidist configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Aug 19, 2020
1 parent c102832 commit a28ae61
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 4 deletions.
43 changes: 39 additions & 4 deletions styleguide.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,44 @@
const path = require('path')
module.exports = {
components: 'src/components/**/[A-Z]*.js',
title: "webqueue2 Frontend Docs",
version: "0.0.1",

// How the example source code is shown.
// [ "collapse", "expand", "hide" ]
// Default: collapse
exampleMode: "collapse",

// How methods and props are shown.
// [ "collapse", "expand", "hide" ]
// Default: collapse
usageMode: "collapse",

// Creates separate pages for top level nav items.
// Default: "false"
pagePerSection: true,

// Styleguide Includes
require: [
// Material UI Resources
path.join(__dirname, "docs/Styleguidist/material-icon.css"),
path.join(__dirname, "docs/Styleguidist/roboto-font.css"),
],

sections: [
{
name: "Getting Started",
content: "./src/Styleguidist Introduction.md",
content: "./docs/Styleguidist/Introduction.md",
},
{
name: "Components",
components: 'src/components/**/[A-Z]*.js',
}
]
}
],

template: {
favicon: "public/favicon.ico",
},

styles: "styleguide.style.js",
theme: "styleguide.theme.js"
}
10 changes: 10 additions & 0 deletions styleguide.style.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {

// Render Area for Componenet Examples
Playground: {
preview: {
backgroundColor: "#efefef",
padding: "1em"
}
},
}
4 changes: 4 additions & 0 deletions styleguide.theme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// See https://github.com/styleguidist/react-styleguidist/blob/master/src/client/styles/theme.ts
module.exports = {
maxWidth: "1400px",
}

0 comments on commit a28ae61

Please sign in to comment.