diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-11-24 22:08:19 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-11-24 22:08:19 +0100 |
commit | 3a0f00411ba6277bda9dc2be516c96e17ce9db82 (patch) | |
tree | d47ee3444c8b325567d7067fba94654b6affc737 /lib/generate | |
parent | 5b655bb29ada234c10da3fe7b5640b68e2c0c147 (diff) | |
download | gitbook-3a0f00411ba6277bda9dc2be516c96e17ce9db82.zip gitbook-3a0f00411ba6277bda9dc2be516c96e17ce9db82.tar.gz gitbook-3a0f00411ba6277bda9dc2be516c96e17ce9db82.tar.bz2 |
Fix #505: add glossary to ebook file
Diffstat (limited to 'lib/generate')
-rw-r--r-- | lib/generate/page/index.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/generate/page/index.js b/lib/generate/page/index.js index 8e44187..a926d13 100644 --- a/lib/generate/page/index.js +++ b/lib/generate/page/index.js @@ -26,6 +26,9 @@ Generator.prototype.loadTemplates = function() { this.summaryTemplate = swig.compileFile( this.plugins.template("ebook:sumary") || path.resolve(this.options.theme, 'templates/ebook/summary.html') ); + this.glossaryTemplate = swig.compileFile( + this.plugins.template("ebook:glossary") || path.resolve(this.options.theme, 'templates/ebook/glossary.html') + ); }; // Generate table of contents @@ -46,7 +49,7 @@ Generator.prototype.finish = function() { var output = path.join(this.options.output, "index.html"); var progress = parse.progress(this.options.navigation, "README.md"); - + return Q() // Write table of contents @@ -54,6 +57,11 @@ Generator.prototype.finish = function() { return that.writeToc(); }) + // Write glossary + .then(function() { + return that.writeGlossary(); + }) + // Copy cover .then(function() { return that.copyCover(); |