diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-05-02 13:40:37 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-05-02 13:41:07 +0200 |
commit | fb75d5d3ee01a50956e91424540aefcf75e8f3c3 (patch) | |
tree | 189a36b1ff6207fa12bc75204ee5312724a00e67 /lib/api | |
parent | 99bbcbebfc35cfca348860c2ea93e0a54ba2c25c (diff) | |
download | gitbook-fb75d5d3ee01a50956e91424540aefcf75e8f3c3.zip gitbook-fb75d5d3ee01a50956e91424540aefcf75e8f3c3.tar.gz gitbook-fb75d5d3ee01a50956e91424540aefcf75e8f3c3.tar.bz2 |
Add this.gitbook.version
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/encodeGlobal.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/api/encodeGlobal.js b/lib/api/encodeGlobal.js index 2bd5949..675f4a3 100644 --- a/lib/api/encodeGlobal.js +++ b/lib/api/encodeGlobal.js @@ -8,6 +8,7 @@ var encodeConfig = require('./encodeConfig'); var encodeNavigation = require('./encodeNavigation'); var fileToURL = require('../output/helper/fileToURL'); var defaultBlocks = require('../constants/defaultBlocks'); +var gitbook = require('../gitbook'); /** Encode a global context into a JS object @@ -131,6 +132,10 @@ function encodeGlobal(output) { }); }); } + }, + + gitbook: { + version: gitbook.version } }; |