verb
Verb makes it dead simple to generate markdown documentation, using simple templates, with zero configuration required. A project without documentation is like a project that doesn't exist.
Install
Install globally with npm:
npm i -g verb
Run tests
npm test
Usage
var verb = require('verb');
verb.data('package.json');
verb.data('docs/*.json');
verb.data({author: 'Jon Schlinkert'});
verb.helper('toc', function() {
});
verb.task('default', function() {
verb.src('.verb.md')
.pipe(verb.dest('./'));
});
API
Create an instance of Verb
with the given options
.
var verb = new Verb();
Define a Verb task.
name
{String}fn
{Function}
verb.task('docs', function() {
});
Run an array of tasks.
verb.run(['foo', 'bar']);
Glob patterns or filepaths to source files.
glob
{String|Array}options
{Object}
verb.task('site', function() {
verb.src('src/*.hbs', {layout: 'default'})
verb.dest('dist')
});
Specify a destination for processed files.
patterns
{String|Array|Function}: Glob patterns, file paths, or renaming function.opts
{Object}: Options to be passed to dest
plugins.
verb.task('sitemap', function() {
verb.src('src/*.txt')
verb.dest('dist', {ext: '.xml'})
});
Rerun the specified task when a file changes.
glob
{String|Array}: Filepaths or glob patterns.options
{String}fn
{Function}: Task(s) to watch.
verb.task('watch', function() {
verb.watch('docs/*.md', ['docs']);
});
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert
Copyright (c) 2014 Fractal contact@wearefractal.com
Released under the MIT license
This file was generated by verb on November 10, 2014.