diff --git a/gulpfile.js b/gulpfile.js index 1dc1bed6..091674ef 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -105,17 +105,25 @@ }); gulp.task('docs', function() { - var version = Info.version, + var history = 'Version history\n---------------\n', + link = '//github.com/cloudcmd/archive/raw/master/cloudcmd', + template = '- *{{ date }}*, ' + + '**[v{{ version }}]' + + '(' + link + '-v{{ version }}.zip)**\n', + version = Info.version, versionNew = getNewVersion(), - msg = 'ERROR: version is missing. gulp readme --v'; + msg = 'ERROR: version is missing. gulp docs --v'; if (!versionNew) { console.log(msg); } else { replaceVersion('README.md', version, versionNew); replaceVersion('HELP.md', version, versionNew); + replaceVersion('HELP.md', history, history + Util.render(template, { + date : Util.getShortDate, + version : versionNew + })); } - }); gulp.task('default', ['jshint', 'css', 'test']);