diff options
Diffstat (limited to 'lib/generators/website.js')
-rw-r--r-- | lib/generators/website.js | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/generators/website.js b/lib/generators/website.js index a58e3c4..d1e92a0 100644 --- a/lib/generators/website.js +++ b/lib/generators/website.js @@ -64,11 +64,11 @@ Generator.prototype.prepareStyles = function() { // Prepare templates Generator.prototype.prepareTemplates = function() { - this.templates["page"] = this.book.plugins.template("site:page") || path.resolve(this.options.theme, 'templates/website/page.html'); + this.templates["page"] = this.book.plugins.template("site:page") || path.resolve(this.options.theme, 'templates/website/page.html'); this.templates["langs"] = this.book.plugins.template("site:langs") || path.resolve(this.options.theme, 'templates/website/langs.html'); this.templates["glossary"] = this.book.plugins.template("site:glossary") || path.resolve(this.options.theme, 'templates/website/glossary.html'); - return Q(); + return Q(); }; // Prepare template engine @@ -213,38 +213,38 @@ Generator.prototype._writeTemplate = function(tpl, options, output, interpolate) interpolate = interpolate || _.identity; return Q() .then(function(sections) { - return that.env.render( - tpl, - _.extend({ + return that.env.render( + tpl, + _.extend({ gitbook: { version: pkg.version }, - styles: that.styles, + styles: that.styles, - revision: that.revision, + revision: that.revision, - title: that.options.title, - description: that.options.description, + title: that.options.title, + description: that.options.description, language: that.book.config.normalizeLanguage(), - glossary: that.book.glossary, + glossary: that.book.glossary, - summary: that.book.summary, - allNavigation: that.book.navigation, + summary: that.book.summary, + allNavigation: that.book.navigation, - plugins: { + plugins: { resources: that.book.plugins.resources(that.namespace) }, - pluginsConfig: JSON.stringify(that.options.pluginsConfig), - htmlSnippet: _.partial(_.partialRight(that.book.plugins.html, that, options), that.namespace), + pluginsConfig: JSON.stringify(that.options.pluginsConfig), + htmlSnippet: _.partial(_.partialRight(that.book.plugins.html, that, options), that.namespace), - options: that.options, + options: that.options, basePath: ".", staticBase: path.join(".", "gitbook"), - }, options) - ); + }, options) + ); }) .then(interpolate) .then(function(html) { |