summaryrefslogtreecommitdiffstats
path: root/lib/book.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-04-18 14:16:21 +0200
committerSamy Pessé <samypesse@gmail.com>2016-04-18 14:16:22 +0200
commit9acbb223db6079e66bb5943cfcfc5278fd93f9cd (patch)
treece5e14812c17e5ff5f43717a462e1ba09bdc713e /lib/book.js
parentc59fc687dbf9cf10222e67295c7d9585f600f523 (diff)
downloadgitbook-9acbb223db6079e66bb5943cfcfc5278fd93f9cd.zip
gitbook-9acbb223db6079e66bb5943cfcfc5278fd93f9cd.tar.gz
gitbook-9acbb223db6079e66bb5943cfcfc5278fd93f9cd.tar.bz2
Add generator and output property as deprecated in config
Diffstat (limited to 'lib/book.js')
-rw-r--r--lib/book.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/book.js b/lib/book.js
index 82f4440..e7f8013 100644
--- a/lib/book.js
+++ b/lib/book.js
@@ -97,16 +97,7 @@ function Book(opts) {
Object.defineProperty(this, 'options', {
get: function () {
this.log.warn.ln('"options" property is deprecated, use config.get(key) instead');
- var cfg = this.config.dump();
- error.deprecateField(cfg, 'book', (this.output? this.output.name : null), '"options.generator" property is deprecated, use "output.name" instead');
-
- // options.generator
- cfg.generator = this.output? this.output.name : null;
-
- // options.output
- cfg.output = this.output? this.output.root() : null;
-
- return cfg;
+ return this.options;
}
});