summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-06 17:13:32 -0700
committerSamy Pessé <samypesse@gmail.com>2014-04-06 17:13:32 -0700
commit4c36c592c1cccfbbb7843d74846a5f908bfcab4e (patch)
treee311663f4303f221b14559217fb5ec02fdb2dc04 /lib
parentc166a9863ec6c098d5dc2ac11f383214ea9bb246 (diff)
parent9ffb1a062f6bfa4c3253eb40c89ba54e6e429fe4 (diff)
downloadgitbook-4c36c592c1cccfbbb7843d74846a5f908bfcab4e.zip
gitbook-4c36c592c1cccfbbb7843d74846a5f908bfcab4e.tar.gz
gitbook-4c36c592c1cccfbbb7843d74846a5f908bfcab4e.tar.bz2
Merge pull request #40 from GitbookIO/feature/searchclient
Feature/searchclient
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 ddd6bdc..1cd63ff 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,