Created
October 6, 2017 13:06
-
-
Save isthatcentered/7f5c42b07f58b3945d72eeac46d0c05d to your computer and use it in GitHub Desktop.
React styleguidist config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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