Skip to content

Instantly share code, notes, and snippets.

@isthatcentered
Created October 6, 2017 13:06
Show Gist options
  • Select an option

  • Save isthatcentered/7f5c42b07f58b3945d72eeac46d0c05d to your computer and use it in GitHub Desktop.

Select an option

Save isthatcentered/7f5c42b07f58b3945d72eeac46d0c05d to your computer and use it in GitHub Desktop.
React styleguidist config
const path = require( 'path' )
module.exports = {
components: 'src/**/*.component.js', // use this file extension to filter components
require: [
path.join( __dirname, 'styleguide.js' ), // Custom js for styleguide
'bootstrap/dist/css/bootstrap.css' // Custom css for styleguide
],
styles: {
Playground: { // for component PlaygroundRenderer
preview: { // For class rsg--preview-60
position: 'relative',
maxWidth: 100 + '%',
maxHeight: 100 + '%',
padding: 0,
width: 295,
height: 340
}
}
}
// sections: [
// {
// name: 'Introduction',
// content: 'docs/introduction.md'
// },
// {
// name: 'Documentation',
// sections: [
// {
// name: 'Installation',
// content: 'docs/installation.md'
// },
// {
// name: 'Configuration',
// content: 'docs/configuration.md'
// }
// ]
// },
// {
// name: 'UI Components',
// content: 'docs/ui.md',
// components: 'lib/components/ui/*.js'
// }
// ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment