From d055c3a540087440b894c2248af434ba942e5107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Tue, 6 Dec 2016 10:14:03 +0000 Subject: [PATCH] fix ui/docs compilation --- ui/src/components/tabs/tab/readme.md | 8 ++++---- ui/src/docs.js | 2 +- ui/webpack/embed-markdown-loader/src/compile/compile.js | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ui/src/components/tabs/tab/readme.md b/ui/src/components/tabs/tab/readme.md index 6ac5bc1c..bb2fab52 100644 --- a/ui/src/components/tabs/tab/readme.md +++ b/ui/src/components/tabs/tab/readme.md @@ -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'); diff --git a/ui/src/docs.js b/ui/src/docs.js index c260181c..5093d9cf 100644 --- a/ui/src/docs.js +++ b/ui/src/docs.js @@ -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'), diff --git a/ui/webpack/embed-markdown-loader/src/compile/compile.js b/ui/webpack/embed-markdown-loader/src/compile/compile.js index ffc1d56b..dcc8d980 100644 --- a/ui/webpack/embed-markdown-loader/src/compile/compile.js +++ b/ui/webpack/embed-markdown-loader/src/compile/compile.js @@ -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 ''; }