verb
Version:
Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used on hundreds of projects of all sizes to generate everything from API docs to readmes.
18 lines (14 loc) • 356 B
JavaScript
;
var stringify = require('stringify-travis-url');
/**
* Called in the `init` transform. Adds a `travis_url`
* property to the context.
*/
module.exports = function(app) {
var github = app.get('data.github');
if (! github) {
return;
}
var travis = stringify(github.user, github.repo);
app.set('data.travis_url', travis);
};