diff options
Diffstat (limited to 'lib/generate')
-rw-r--r-- | lib/generate/index.js | 27 | ||||
-rw-r--r-- | lib/generate/site/index.js | 4 |
2 files changed, 19 insertions, 12 deletions
diff --git a/lib/generate/index.js b/lib/generate/index.js index 898e71f..c6c26ca 100644 --- a/lib/generate/index.js +++ b/lib/generate/index.js @@ -28,29 +28,34 @@ var generate = function(options) { options = _.defaults(options || {}, { // Folders to use - input: null, - output: null, + "input": null, + "output": null, // Config file (relative to input) - configFile: "book.json", + "configFile": "book.json", // Output generator - generator: "site", + "generator": "site", // Book title, keyword, description - title: null, - description: null, + "title": null, + "description": null, // Origin github repository id - github: null, - githubHost: 'https://github.com/', + "github": null, + "githubHost": 'https://github.com/', // Theming - theme: path.resolve(__dirname, '../../theme'), + "theme": path.resolve(__dirname, '../../theme'), // Plugins - plugins: [], - pluginsConfig: {} + "plugins": [], + "pluginsConfig": {}, + + // Links + "links": { + "about": null + } }); if (!options.input) { diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js index 51f66f0..b63f703 100644 --- a/lib/generate/site/index.js +++ b/lib/generate/site/index.js @@ -80,7 +80,9 @@ Generator.prototype._writeTemplate = function(tpl, options, output, interpolate) allNavigation: that.options.navigation, plugins: that.plugins, - pluginsConfig: JSON.stringify(that.options.pluginsConfig) + pluginsConfig: JSON.stringify(that.options.pluginsConfig), + + options: that.options }, options)); }) .then(interpolate) |