diff options
Diffstat (limited to 'lib/generate/page/index.js')
-rw-r--r-- | lib/generate/page/index.js | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/lib/generate/page/index.js b/lib/generate/page/index.js index 33c489a..4a639ba 100644 --- a/lib/generate/page/index.js +++ b/lib/generate/page/index.js @@ -29,21 +29,6 @@ Generator.prototype.loadTemplates = function() { this.plugins.template("page") || path.resolve(this.options.theme, 'templates/page.html') ); }; -/* -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; - }); -}; - -*/ Generator.prototype.finish = function() { var that = this; @@ -53,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() { @@ -80,4 +55,4 @@ Generator.prototype.langsIndex = function(langs) { return Q(); }; -module.exports = Generator;
\ No newline at end of file +module.exports = Generator; |