.README.md.bud
/**
* Bud file for README.md
*/
"use strict";
const apeTmpl = require('ape-tmpl'),
fs = require('fs'),
os = require('os'),
arrayfilter = require('arrayfilter'),
pkg = require('./package.json');
module.exports = apeTmpl.readmeMdBud({
pkg: pkg,
repo: pkg.repository,
sections: 'doc/readme/*.md.hbs',
badges: {
travis: true,
codeclimate: true,
codeclimateCoverage: true,
gemnasium: false,
npm: true
},
links: require('./doc/links'),
vars: {
get usageIndices() {
return fs.readFileSync(__dirname + '/doc/readme/02.Usage.md.hbs').toString()
.split(os.EOL)
.filter(arrayfilter.patternAccept(/^\s*###/))
.map((line) => {
return line.replace(/^\s*###\s*/, '');
})
}
}
});
if (!module.parent) {
require('coz').render(__filename);
}