diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-04-30 12:14:43 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-04-30 12:14:43 +0200 |
commit | 5bad08b9a0756c46eebf6d8460c959ec388d7e74 (patch) | |
tree | 17f6e11822b453795c2a1cff5a5fddf196929a14 | |
parent | 310691bca2459112a586da97573e9a806b673941 (diff) | |
download | gitbook-5bad08b9a0756c46eebf6d8460c959ec388d7e74.zip gitbook-5bad08b9a0756c46eebf6d8460c959ec388d7e74.tar.gz gitbook-5bad08b9a0756c46eebf6d8460c959ec388d7e74.tar.bz2 |
Add this.generator as deprecated
-rw-r--r-- | lib/api/encodeGlobal.js | 6 | ||||
-rw-r--r-- | lib/output/website/onPage.js | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/api/encodeGlobal.js b/lib/api/encodeGlobal.js index 89cea59..4688cca 100644 --- a/lib/api/encodeGlobal.js +++ b/lib/api/encodeGlobal.js @@ -101,8 +101,14 @@ function encodeGlobal(output) { } }; + // todo + // template.applyBlock + // Deprecated properties + deprecate.field(output, 'this.generator', result, 'generator', + output.getGenerator(), '"this.generator" property is deprecated, use "this.output.name" instead'); + deprecate.field(output, 'this.navigation', result, 'navigation', function() { return encodeNavigation(output); }, '"navigation" property is deprecated'); diff --git a/lib/output/website/onPage.js b/lib/output/website/onPage.js index dcdd95a..64b4e04 100644 --- a/lib/output/website/onPage.js +++ b/lib/output/website/onPage.js @@ -56,6 +56,9 @@ function onPage(output, page) { } }; + // We should probabbly move it to "template" or a "site" namespace + context.basePath = basePath; + // Render the theme return Templating.renderFile(engine, prefix + '/page.html', context) |