summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-17 15:08:08 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-17 15:08:08 +0100
commit1769ac2c2d93e3244774aee49ff83f6649e1ad1a (patch)
treec95f84c77c0631fd8c2483a49c7e92564ec057eb
parent067bdcda2db081a6df55913b8502a94f1f8251ac (diff)
downloadgitbook-1769ac2c2d93e3244774aee49ff83f6649e1ad1a.zip
gitbook-1769ac2c2d93e3244774aee49ff83f6649e1ad1a.tar.gz
gitbook-1769ac2c2d93e3244774aee49ff83f6649e1ad1a.tar.bz2
Don't output config in json format
-rw-r--r--lib/output/json.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/output/json.js b/lib/output/json.js
index 4fb3bbf..5c9e1f5 100644
--- a/lib/output/json.js
+++ b/lib/output/json.js
@@ -19,6 +19,9 @@ JSONOutput.prototype.onPage = function(page) {
.then(function() {
var json = that.getPageContext(page);
+ // Delete some private properties
+ delete json.config;
+
return that.writeFile(
page.withExtension('.json'),
JSON.stringify(json, null, 4)