diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/generate/config.js | 3 | ||||
-rw-r--r-- | lib/generate/ebook/index.js | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/generate/config.js b/lib/generate/config.js index d2054df..fb232a6 100644 --- a/lib/generate/config.js +++ b/lib/generate/config.js @@ -17,9 +17,10 @@ var CONFIG = { // Configuration file to use "configFile": "book", - // Book title and description (defaults are extracted from the README) + // Book metadats (somes are extracted from the README by default) "title": null, "description": null, + "isbn": null, // For ebook format, the extension to use for generation (default is detected from output extension) // "epub", "pdf", "mobi" diff --git a/lib/generate/ebook/index.js b/lib/generate/ebook/index.js index bc39e15..4ecccec 100644 --- a/lib/generate/ebook/index.js +++ b/lib/generate/ebook/index.js @@ -30,6 +30,7 @@ Generator.prototype.finish = function() { "--cover": that.options.cover, "--title": that.options.title, "--comments": that.options.description, + "--isbn": that.options.isbn, "--authors": that.options.author, "--publisher": "GitBook", "--chapter": "descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), ' book-chapter ')]", |