var gulp = require('gulp'),
    jsdoc = require('gulp-jsdoc'),
    ghPages = require('gulp-gh-pages'),
    docsSrcDir = './assets/js/**/*.js',
    docsDestDir = './docs/js',
    jsDocTask;

jsDocTask = function() {
  return gulp.src(docsSrcDir)
    .pipe(
      jsdoc(docsDestDir,
        {
          path: './node_modules/jaguarjs-jsdoc',
          applicationName: 'Dough JavaScript',
          cleverLinks: true,
          copyright: 'Copyright Money Advice Service &copy;',
          linenums: true,
          collapseSymbols: false
        },
        {
          plugins: ['plugins/markdown'],
        }
      )
    );
};

gulp.task('deploy', function() {
  return gulp.src(docsDestDir + '/**/*')
    .pipe(ghPages());
});

gulp.task('default', ['jsdoc']);

gulp.task('build', ['jsdoc', 'deploy']);

gulp.task('jsdoc', jsDocTask);

gulp.task('watch', function() {
  jsDocTask();
  gulp.watch(docsSrcDir, ['jsdoc']);
});

@@ -222,24 +222,25 @@
 rn gulp.src(
+%5B
 docsSrcDir)%0A
@@ -237,16 +237,32 @@
 csSrcDir
+, './README.md'%5D
 )%0A    .p

Use the Dough README on docs landing page