diff options
Diffstat (limited to 'lib/generate')
-rw-r--r-- | lib/generate/ebook/index.js | 3 | ||||
-rw-r--r-- | lib/generate/page/index.js | 16 |
2 files changed, 11 insertions, 8 deletions
diff --git a/lib/generate/ebook/index.js b/lib/generate/ebook/index.js index 0e1cd4e..5557559 100644 --- a/lib/generate/ebook/index.js +++ b/lib/generate/ebook/index.js @@ -40,7 +40,8 @@ Generator.prototype.finish = function() { "--level1-toc": "descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), ' book-chapter-1 ')]", "--level2-toc": "descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), ' book-chapter-2 ')]", "--level3-toc": "descendant-or-self::*[contains(concat(' ', normalize-space(@class), ' '), ' book-chapter-3 ')]", - "--no-chapters-in-toc": true + "--no-chapters-in-toc": true, + "--max-levels": "1000" }; if (format == "pdf") { diff --git a/lib/generate/page/index.js b/lib/generate/page/index.js index 9e48a5e..33c489a 100644 --- a/lib/generate/page/index.js +++ b/lib/generate/page/index.js @@ -29,7 +29,7 @@ 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 = { @@ -43,10 +43,7 @@ Generator.prototype.convertFile = function(content, input) { }); }; -// Generate languages index -Generator.prototype.langsIndex = function(langs) { - return Q(); -}; +*/ Generator.prototype.finish = function() { var that = this; @@ -58,13 +55,13 @@ Generator.prototype.finish = function() { return Q() // Generate html .then(function(pages) { - return that._writeTemplate(that.template, { + /* return that._writeTemplate(that.template, { pages: that.pages, progress: progress, basePath: basePath, staticBase: path.join(basePath, "gitbook"), - }, output); + }, output);*/ }) // Copy cover @@ -78,4 +75,9 @@ Generator.prototype.finish = function() { }); }; +// Generate languages index +Generator.prototype.langsIndex = function(langs) { + return Q(); +}; + module.exports = Generator;
\ No newline at end of file |