summaryrefslogtreecommitdiffstats
path: root/lib/api
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-05-02 10:02:46 +0200
committerSamy Pessé <samypesse@gmail.com>2016-05-02 10:02:46 +0200
commit9a48620152e75ea94b56a90e2b7c37aeb438d2c1 (patch)
tree8817c7265837a0a592a72ed5e502ec848b1b01fd /lib/api
parente444b3a402fd32981967e2c70bcb03749f7773fb (diff)
downloadgitbook-9a48620152e75ea94b56a90e2b7c37aeb438d2c1.zip
gitbook-9a48620152e75ea94b56a90e2b7c37aeb438d2c1.tar.gz
gitbook-9a48620152e75ea94b56a90e2b7c37aeb438d2c1.tar.bz2
Document encodeGlobal api
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/encodeGlobal.js18
1 files changed, 15 insertions, 3 deletions
diff --git a/lib/api/encodeGlobal.js b/lib/api/encodeGlobal.js
index e8f7156..2bd5949 100644
--- a/lib/api/encodeGlobal.js
+++ b/lib/api/encodeGlobal.js
@@ -28,14 +28,29 @@ function encodeGlobal(output) {
log: logger,
config: encodeConfig(output, book.getConfig()),
+ /**
+ Check if the book is a multilingual book
+
+ @return {Boolean}
+ */
isMultilingual: function() {
return book.isMultilingual();
},
+ /**
+ Check if the book is a language book for a multilingual book
+
+ @return {Boolean}
+ */
isLanguageBook: function() {
return book.isLanguageBook();
},
+ /**
+ Same as isLanguageBook
+
+ @deprecated
+ */
isSubBook: deprecate.method(output, 'this.isSubBook', function() {
return book.isLanguageBook();
}, '"isSubBook" is deprecated, use "isLanguageBook()" instead'),
@@ -119,9 +134,6 @@ function encodeGlobal(output) {
}
};
- // todo
- // template.applyBlock
-
// Deprecated properties
deprecate.field(output, 'this.generator', result, 'generator',