Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
fix(styleguide): use theme
Browse files Browse the repository at this point in the history
  • Loading branch information
cdaringe committed Mar 10, 2017
1 parent 15d52ca commit 0660d79
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"styleguide": "styleguidist server",
"styleguide:build": "styleguidist build",
"styleguide:server": "styleguidist server",
"start": "node scripts/start"
},
"ripcord": {
Expand Down
5 changes: 5 additions & 0 deletions src/components/suir/SUI.examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## CSS Theme

This is a dummy component just to import our CSS!

require('../../../lib/styles/semantic.css')
4 changes: 2 additions & 2 deletions src/components/suir/radio/Radio.examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Radio toggle

const Radio = require('semantic-ui-react').Radio;
<Radio toggle />
const Radio = require('semantic-ui-react').Radio;
<Radio toggle />

Standard Radio

Expand Down
8 changes: 1 addition & 7 deletions styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ const glob = require('glob')
const fs = require('fs')
const builder = require('./scripts/builder')

const componentStyles = glob
.sync(`${__dirname}/src/**/*.css`)
.filter(filename => !filename.match(/components.suir/))
.filter(filename => !filename.match(/variables.css/))
.concat([builder.semanticCSSFilename])

const suirExamples = glob.sync(`${__dirname}/src/components/suir/**/*.examples.md`)

var semanticCSSStat = fs.lstatSync(builder.semanticCSSFilename)
Expand Down Expand Up @@ -48,12 +42,12 @@ module.exports = {
},
skipComponentsWithoutExample: true,
webpackConfig: {
entry: componentStyles,
output: {
path: PATHS.dist,
publicPath: '/',
filename: 'bundle.js'
},
devtool: 'eval',
module: {
preLoaders: [
{
Expand Down

0 comments on commit 0660d79

Please sign in to comment.