summaryrefslogtreecommitdiffstats
path: root/lib/config/index.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-02-12 19:20:32 +0100
committerSamy Pesse <samypesse@gmail.com>2016-02-12 19:20:32 +0100
commit4555c541a8f98cb6ad4cbec2d7bf85b375dbf505 (patch)
tree0079507e1885a6c8a94a36644650a865f5e8cc5d /lib/config/index.js
parenta853a51a0ba0976e8e28f368bd88717611b3c477 (diff)
downloadgitbook-4555c541a8f98cb6ad4cbec2d7bf85b375dbf505.zip
gitbook-4555c541a8f98cb6ad4cbec2d7bf85b375dbf505.tar.gz
gitbook-4555c541a8f98cb6ad4cbec2d7bf85b375dbf505.tar.bz2
Replace links to page of summary by html links
Diffstat (limited to 'lib/config/index.js')
-rw-r--r--lib/config/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/config/index.js b/lib/config/index.js
index 563f03b..d83dae4 100644
--- a/lib/config/index.js
+++ b/lib/config/index.js
@@ -19,7 +19,7 @@ function Config(book, baseConfig) {
this.book = book;
this.fs = book.fs;
this.log = book.log;
- this.filename = null;
+ this.path = null;
this.replace(baseConfig || {});
}
@@ -37,7 +37,7 @@ Config.prototype.load = function() {
return that.fs.loadAsObject(that.book.resolve(filename))
.then(function(_config) {
- that.filename = filename;
+ that.path = filename;
return that.replace(_config);
})
.fail(function(err) {
@@ -102,7 +102,7 @@ Config.prototype.replace = function(options) {
// Return true if book has a configuration file
Config.prototype.exists = function() {
- return Boolean(this.filename);
+ return Boolean(this.path);
};
// Return path to a structure file