mirror of
https://github.com/yldio/copilot.git
synced 2024-11-13 06:40:06 +02:00
fix ui/docs compilation
This commit is contained in:
parent
08ad220143
commit
d055c3a540
@ -5,10 +5,10 @@
|
|||||||
```embed
|
```embed
|
||||||
const React = require('react');
|
const React = require('react');
|
||||||
const ReactDOM = require('react-dom/server');
|
const ReactDOM = require('react-dom/server');
|
||||||
const Base = require('../base');
|
const Base = require('../../base');
|
||||||
const Container = require('../container');
|
const Container = require('../../container');
|
||||||
const Row = require('../row');
|
const Row = require('../../row');
|
||||||
const Column = require('../column');
|
const Column = require('../../column');
|
||||||
const Tabs = require('../');
|
const Tabs = require('../');
|
||||||
const Tab = require('./index');
|
const Tab = require('./index');
|
||||||
const styles = require('./style.css');
|
const styles = require('./style.css');
|
||||||
|
@ -21,7 +21,7 @@ module.exports = {
|
|||||||
Toggle: require('./components/toggle/readme.md'),
|
Toggle: require('./components/toggle/readme.md'),
|
||||||
Notificaton: require('./components/notification/readme.md'),
|
Notificaton: require('./components/notification/readme.md'),
|
||||||
Checkbox: require('./components/checkbox/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'),
|
Tabs: require('./components/tabs/readme.md'),
|
||||||
Widget: require('./components/widget/readme.md'),
|
Widget: require('./components/widget/readme.md'),
|
||||||
Pagination: require('./components/pagination/readme.md'),
|
Pagination: require('./components/pagination/readme.md'),
|
||||||
|
@ -83,11 +83,11 @@ module.exports = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO read extract css defs
|
// TODO read extract css defs
|
||||||
let style = mfs.readdirSync('/static/css').filter((file) => {
|
let style = mfs.readdirSync('/static').filter((file) => {
|
||||||
return /\.css$/.test(file);
|
return /\.css$/.test(file);
|
||||||
}).map((file) => {
|
}).map((file) => {
|
||||||
try {
|
try {
|
||||||
return mfs.readFileSync(`/static/css/${file}`, 'utf-8');
|
return mfs.readFileSync(`/static/${file}`, 'utf-8');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user