diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-01 16:42:15 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-01 16:42:15 -0700 |
commit | 7121b7efe3def5848ba011a23d25dd6d8d7980d6 (patch) | |
tree | ed04e95300c446fe770962bf6d15686764d23521 /lib/generate/index.js | |
parent | d02581a21cbe3298480d7eceb8232019d6621d4b (diff) | |
download | gitbook-7121b7efe3def5848ba011a23d25dd6d8d7980d6.zip gitbook-7121b7efe3def5848ba011a23d25dd6d8d7980d6.tar.gz gitbook-7121b7efe3def5848ba011a23d25dd6d8d7980d6.tar.bz2 |
Fix #4: Add option for defining description
Diffstat (limited to 'lib/generate/index.js')
-rw-r--r-- | lib/generate/index.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/generate/index.js b/lib/generate/index.js index 07b62d0..43f9497 100644 --- a/lib/generate/index.js +++ b/lib/generate/index.js @@ -11,8 +11,9 @@ var generate = function(root, output, options) { var files, summary, navigation, tpl; options = _.defaults(options || {}, { - // Book title + // Book title, keyword, description title: null, + description: "Book generated using GitBook", // Origin github repository id github: null @@ -59,9 +60,12 @@ var generate = function(root, output, options) { root: root, output: output, locals: { + title: options.title, + description: options.description, + githubAuthor: options.github.split("/")[0], githubId: options.github, - title: options.title, + summary: summary, allNavigation: navigation } |