summaryrefslogtreecommitdiffstats
path: root/lib/configuration.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-24 18:54:20 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-24 18:54:20 +0100
commit1583ede3d7ae005f7bd399ab587ca9bddfe845ca (patch)
tree51620a7fa837c1160ef3c81d29b16211c8bbe6b5 /lib/configuration.js
parent572994a17e24b51624437e5b0f5da44a6156ffd7 (diff)
downloadgitbook-1583ede3d7ae005f7bd399ab587ca9bddfe845ca.zip
gitbook-1583ede3d7ae005f7bd399ab587ca9bddfe845ca.tar.gz
gitbook-1583ede3d7ae005f7bd399ab587ca9bddfe845ca.tar.bz2
Add Book.generateFile to output a pdf
Diffstat (limited to 'lib/configuration.js')
-rw-r--r--lib/configuration.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/configuration.js b/lib/configuration.js
index d5406c5..375833b 100644
--- a/lib/configuration.js
+++ b/lib/configuration.js
@@ -101,6 +101,11 @@ Configuration.prototype.load = function() {
});
};
+// Extend the configuration
+Configuration.prototype.extend = function(options) {
+ _.extend(this.options, options);
+};
+
// Get structure file
Configuration.prototype.getStructure = function(name) {
return this.options.structure[name].split(".").slice(0, -1).join(".");