From 4bc56564b4ee7a4fedf34d4c585f2ba0efd3a8ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Thu, 22 Oct 2015 16:12:21 +0200 Subject: [PATCH] Comment gitbook.state api --- theme/javascript/state.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/theme/javascript/state.js b/theme/javascript/state.js index 5fde20f64..34e94fe84 100644 --- a/theme/javascript/state.js +++ b/theme/javascript/state.js @@ -10,7 +10,11 @@ state.update = function(dom) { state.$book = $book; state.level = $book.data('level'); state.basePath = $book.data('basepath'); + + // Date of build state.revision = $book.data('revision'); + + // Original path of the file state.filepath = $book.data('filepath'); // Absolute url to the root of the book