mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
* bump @elastic/eslint-config-kibana and deps * eslint --fix * fix unused vars some exceptions for tests * move eslint-config-kibana to dev * rename create_package function * make .node-version looser, match internal checks Original commit: elastic/kibana-plugin-helpers@6fac14bd51
18 lines
480 B
JavaScript
18 lines
480 B
JavaScript
const resolve = require('path').resolve;
|
|
const readFileSync = require('fs').readFileSync;
|
|
|
|
function indent(txt, n) {
|
|
const space = (new Array(n + 1)).join(' ');
|
|
return space + txt.split('\n').join('\n' + space);
|
|
}
|
|
|
|
module.exports = function docs(name) {
|
|
const md = readFileSync(resolve(__dirname, '../tasks', name, 'README.md'), 'utf8');
|
|
|
|
return function () {
|
|
console.log('\n Docs:');
|
|
console.log('');
|
|
console.log(indent(md, 4));
|
|
console.log('');
|
|
};
|
|
};
|