diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-17 15:08:08 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-17 15:08:08 +0100 |
commit | 1769ac2c2d93e3244774aee49ff83f6649e1ad1a (patch) | |
tree | c95f84c77c0631fd8c2483a49c7e92564ec057eb /lib/output/json.js | |
parent | 067bdcda2db081a6df55913b8502a94f1f8251ac (diff) | |
download | gitbook-1769ac2c2d93e3244774aee49ff83f6649e1ad1a.zip gitbook-1769ac2c2d93e3244774aee49ff83f6649e1ad1a.tar.gz gitbook-1769ac2c2d93e3244774aee49ff83f6649e1ad1a.tar.bz2 |
Don't output config in json format
Diffstat (limited to 'lib/output/json.js')
-rw-r--r-- | lib/output/json.js | 3 |
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) |