diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-22 21:52:13 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-22 21:52:13 +0100 |
commit | 0c8513801c131ec6e2c7b348403a4c66a9bf2a11 (patch) | |
tree | 0d30ae9e895d930ad2d7a9bed0c6fbee3d8e59b3 /lib/book.js | |
parent | 90789aa5b92a17825c6d98beced5abc3794f4d84 (diff) | |
download | gitbook-0c8513801c131ec6e2c7b348403a4c66a9bf2a11.zip gitbook-0c8513801c131ec6e2c7b348403a4c66a9bf2a11.tar.gz gitbook-0c8513801c131ec6e2c7b348403a4c66a9bf2a11.tar.bz2 |
Write glossary for website
Diffstat (limited to 'lib/book.js')
-rw-r--r-- | lib/book.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/book.js b/lib/book.js index 036844f..90322f2 100644 --- a/lib/book.js +++ b/lib/book.js @@ -282,7 +282,7 @@ Book.prototype.parseGlossary = function() { return that.findFile(that.config.getStructure("glossary")) .then(function(glossary) { - if (!glossary) return {}; + if (!glossary) return []; // Remove the glossary from the list of files to parse that.files = _.without(that.files, glossary.path); @@ -325,6 +325,7 @@ Book.prototype.parsePage = function(filename) { // Content sections page.sections = pageUtil.normalize(page.sections, { + input: filename, navigation: that.navigation, base: path.dirname(filename) || './', output: path.dirname(filename) || './', |