diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-10-13 10:41:23 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-10-13 10:41:23 +0200 |
commit | 1da341741b4e5f2cee3bb60fbd3b546708e2ef82 (patch) | |
tree | b047aaca8c26f1316b2f9b4d20b6f1541d34ad67 /lib/generate/page | |
parent | 6ea5b2b539b107fff094689d0844e661e3260130 (diff) | |
parent | 2dd6192576fe2602d11741c5a9fc17c27ac1ddc3 (diff) | |
download | gitbook-1da341741b4e5f2cee3bb60fbd3b546708e2ef82.zip gitbook-1da341741b4e5f2cee3bb60fbd3b546708e2ef82.tar.gz gitbook-1da341741b4e5f2cee3bb60fbd3b546708e2ef82.tar.bz2 |
Merge pull request #471 from GitbookIO/feature/multipages
Use multiple HTML files for ebook generation
Diffstat (limited to 'lib/generate/page')
-rw-r--r-- | lib/generate/page/index.js | 35 |
1 files changed, 6 insertions, 29 deletions
diff --git a/lib/generate/page/index.js b/lib/generate/page/index.js index 9e48a5e..4a639ba 100644 --- a/lib/generate/page/index.js +++ b/lib/generate/page/index.js @@ -30,24 +30,6 @@ Generator.prototype.loadTemplates = function() { ); }; -Generator.prototype.convertFile = function(content, input) { - var that = this; - var json = { - path: input, - progress: parse.progress(this.options.navigation, input) - }; - - return this.prepareFile(content, input) - .then(function(page) { - that.pages[input] = page; - }); -}; - -// Generate languages index -Generator.prototype.langsIndex = function(langs) { - return Q(); -}; - Generator.prototype.finish = function() { var that = this; var basePath = "."; @@ -56,16 +38,6 @@ Generator.prototype.finish = function() { var progress = parse.progress(this.options.navigation, "README.md"); return Q() - // Generate html - .then(function(pages) { - return that._writeTemplate(that.template, { - pages: that.pages, - progress: progress, - - basePath: basePath, - staticBase: path.join(basePath, "gitbook"), - }, output); - }) // Copy cover .then(function() { @@ -78,4 +50,9 @@ Generator.prototype.finish = function() { }); }; -module.exports = Generator;
\ No newline at end of file +// Generate languages index +Generator.prototype.langsIndex = function(langs) { + return Q(); +}; + +module.exports = Generator; |