diff options
Diffstat (limited to 'lib/generators/website.js')
-rw-r--r-- | lib/generators/website.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/generators/website.js b/lib/generators/website.js index 4b7595a..480e56b 100644 --- a/lib/generators/website.js +++ b/lib/generators/website.js @@ -57,9 +57,9 @@ Generator.prototype.prepareStyles = function() { // Prepare templates Generator.prototype.prepareTemplates = function() { - this.templates["page"] = this.plugins.template("site:page") || path.resolve(this.options.theme, 'templates/website/page.html'); - this.templates["langs"] = this.plugins.template("site:langs") || path.resolve(this.options.theme, 'templates/website/langs.html'); - this.templates["glossary"] = this.plugins.template("site:glossary") || path.resolve(this.options.theme, 'templates/website/glossary.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(); }; @@ -232,9 +232,9 @@ Generator.prototype._writeTemplate = function(tpl, options, output, interpolate) summary: that.book.summary, allNavigation: that.book.navigation, - plugins: that.plugins, + plugins: that.book.plugins, pluginsConfig: JSON.stringify(that.options.pluginsConfig), - htmlSnippet: _.partialRight(that.plugins.html, that, options), + htmlSnippet: _.partialRight(that.book.plugins.html, that, options), options: that.options, @@ -265,10 +265,10 @@ Generator.prototype.copyAssets = function() { // Copy plugins assets .then(function() { return Q.all( - _.map(that.plugins.list, function(plugin) { + _.map(that.book.plugins.list, function(plugin) { var pluginAssets = path.join(that.options.output, "gitbook/plugins/", plugin.name); return plugin.copyAssets(pluginAssets, { - base: that.pluginAssetsBase + base: "book" }); }) ); |