fix ui/docs compilation

This commit is contained in:
Sérgio Ramos 2016-12-06 10:14:03 +00:00
parent 08ad220143
commit d055c3a540
3 changed files with 7 additions and 7 deletions

View File

@ -5,10 +5,10 @@
```embed
const React = require('react');
const ReactDOM = require('react-dom/server');
const Base = require('../base');
const Container = require('../container');
const Row = require('../row');
const Column = require('../column');
const Base = require('../../base');
const Container = require('../../container');
const Row = require('../../row');
const Column = require('../../column');
const Tabs = require('../');
const Tab = require('./index');
const styles = require('./style.css');

View File

@ -21,7 +21,7 @@ module.exports = {
Toggle: require('./components/toggle/readme.md'),
Notificaton: require('./components/notification/readme.md'),
Checkbox: require('./components/checkbox/readme.md'),
Tab: require('./components/tab/readme.md'),
Tab: require('./components/tabs/tab/readme.md'),
Tabs: require('./components/tabs/readme.md'),
Widget: require('./components/widget/readme.md'),
Pagination: require('./components/pagination/readme.md'),

View File

@ -83,11 +83,11 @@ module.exports = ({
}
// TODO read extract css defs
let style = mfs.readdirSync('/static/css').filter((file) => {
let style = mfs.readdirSync('/static').filter((file) => {
return /\.css$/.test(file);
}).map((file) => {
try {
return mfs.readFileSync(`/static/css/${file}`, 'utf-8');
return mfs.readFileSync(`/static/${file}`, 'utf-8');
} catch (err) {
return '';
}