diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-21 22:20:41 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-21 22:20:41 +0200 |
commit | 5beff865488f53d73000da382abc6d7d7f18ecd7 (patch) | |
tree | 8c94cb90c63987b5a526dc46142dc2ca6ab12856 /lib | |
parent | dd395edae122e567e231d472d317ce3e406a5fc2 (diff) | |
download | gitbook-5beff865488f53d73000da382abc6d7d7f18ecd7.zip gitbook-5beff865488f53d73000da382abc6d7d7f18ecd7.tar.gz gitbook-5beff865488f53d73000da382abc6d7d7f18ecd7.tar.bz2 |
Change js interface for plugins and add configuration
Diffstat (limited to 'lib')
-rw-r--r-- | lib/generate/index.js | 6 | ||||
-rw-r--r-- | lib/generate/site/index.js | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/generate/index.js b/lib/generate/index.js index c3803cf..3a9157a 100644 --- a/lib/generate/index.js +++ b/lib/generate/index.js @@ -43,7 +43,11 @@ var generate = function(options) { githubHost: 'https://github.com/', // Theming - theme: path.resolve(__dirname, '../../theme') + theme: path.resolve(__dirname, '../../theme'), + + // Plugins + plugins: [], + pluginsConfig: {test:1} }); if (!options.input) { diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js index 809a7fc..68328e7 100644 --- a/lib/generate/site/index.js +++ b/lib/generate/site/index.js @@ -71,7 +71,8 @@ Generator.prototype._writeTemplate = function(tpl, options, output) { summary: that.options.summary, allNavigation: that.options.navigation, - plugins: that.plugins + plugins: that.plugins, + pluginsConfig: JSON.stringify(that.options.pluginsConfig) }, options)); }) .then(function(html) { |