diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-09 08:17:37 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-09 08:17:37 +0200 |
commit | 1b432288f041baef2ebe54c96a7a86f547b14c67 (patch) | |
tree | 8856ef41c7f38e135d84c8f5f3e4363c91459569 /lib/generate/index.js | |
parent | 2182baa2e9bf520943871c52340066cfdd28ba0b (diff) | |
parent | fa2f82d52f34b725483f0fd55be3cc9b04f7dc9b (diff) | |
download | gitbook-1b432288f041baef2ebe54c96a7a86f547b14c67.zip gitbook-1b432288f041baef2ebe54c96a7a86f547b14c67.tar.gz gitbook-1b432288f041baef2ebe54c96a7a86f547b14c67.tar.bz2 |
Merge branch 'optional-github' of https://github.com/mrpotes/gitbook into mrpotes-optional-github
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) })); - }) + }) ); }) |