summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-06 17:13:10 -0700
committerSamy Pessé <samypesse@gmail.com>2014-04-06 17:13:10 -0700
commit9ffb1a062f6bfa4c3253eb40c89ba54e6e429fe4 (patch)
tree125ce2fb57852b3a5fe90a53c5d2197f4bfe8170 /lib
parent536c48096938ef141fdf4351739f8362e80641da (diff)
downloadgitbook-9ffb1a062f6bfa4c3253eb40c89ba54e6e429fe4.zip
gitbook-9ffb1a062f6bfa4c3253eb40c89ba54e6e429fe4.tar.gz
gitbook-9ffb1a062f6bfa4c3253eb40c89ba54e6e429fe4.tar.bz2
Use cache in localstorage to store search index
Diffstat (limited to 'lib')
-rw-r--r--lib/generate/site/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js
index 474de2a..8b080f2 100644
--- a/lib/generate/site/index.js
+++ b/lib/generate/site/index.js
@@ -26,6 +26,7 @@ var Generator = function() {
// Attach methods to instance
_.bindAll(this);
+ this.revision = Date.now();
this.indexer = indexer();
// Load base template
@@ -41,6 +42,8 @@ Generator.prototype._writeTemplate = function(tpl, options, output) {
return Q()
.then(function(sections) {
return tpl(_.extend({
+ revision: that.revision,
+
title: that.options.title,
description: that.options.description,