diff options
author | James Phillpotts <jphillpotts@scottlogic.co.uk> | 2014-04-07 10:38:06 +0100 |
---|---|---|
committer | James Phillpotts <jphillpotts@scottlogic.co.uk> | 2014-04-07 10:38:06 +0100 |
commit | 80794997a4ebfc5bf397132ff89ee8c76e99efbe (patch) | |
tree | 7b1f922ecb1551c0f8c55ef875a5db9aa90ea2d6 /lib/generate/index.js | |
parent | ec719891a1d652873cb6668d94a141b77adea3df (diff) | |
download | gitbook-80794997a4ebfc5bf397132ff89ee8c76e99efbe.zip gitbook-80794997a4ebfc5bf397132ff89ee8c76e99efbe.tar.gz gitbook-80794997a4ebfc5bf397132ff89ee8c76e99efbe.tar.bz2 |
Make use of github optional
Diffstat (limited to 'lib/generate/index.js')
-rw-r--r-- | lib/generate/index.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/generate/index.js b/lib/generate/index.js index 53ae509..4804548 100644 --- a/lib/generate/index.js +++ b/lib/generate/index.js @@ -39,8 +39,8 @@ var generate = function(options) { theme: path.resolve(__dirname, '../../theme') }); - if (!options.github || !options.title || !options.input || !options.output) { - return Q.reject(new Error("Need options: github, title, input, output")); + if (!options.title || !options.input || !options.output) { + return Q.reject(new Error("Need options: title, input, output")); } if (!generators[options.generator]) { @@ -76,7 +76,7 @@ var generate = function(options) { // Generate sub-books .then(function(_langsSummary) { options.langsSummary = parse.langs(_langsSummary); - + // Generated a book for each valid entry return Q.all( _.map(options.langsSummary.list, function(entry) { @@ -84,7 +84,7 @@ var generate = function(options) { input: path.join(options.input, entry.path), output: path.join(options.output, entry.path) })); - }) + }) ); }) |