mirror of
https://github.com/yldio/copilot.git
synced 2024-12-01 07:30:07 +02:00
fix ui/docs compilation
This commit is contained in:
parent
08ad220143
commit
d055c3a540
@ -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');
|
||||
|
@ -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'),
|
||||
|
@ -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 '';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user