UNPKG

verb

Version:

A project without documentation is like a project that doesn't exist. Verb solves this by making it dead simple to generate docs, using simple markdown templates, with zero configuration required.

28 lines (23 loc) 601 B
/** * Verb <https://github.com/assemble/verb> * Generate markdown documentation for GitHub projects. * * Copyright (c) 2014 Jon Schlinkert, Brian Woodward, contributors. * Licensed under the MIT license. */ const plasma = require('plasma'); const _ = require('lodash'); /** * Extend context with metadata from * `options.data`. * * @param {Object} options * @return {Object} * @api private */ function data(verb) { var opts = _.extend({}, verb.options || {}); opts.data = opts.data || {}; return _.extend({}, { contributing: true }, plasma(opts.data)); } module.exports = data;