summaryrefslogtreecommitdiffstats
path: root/lib/generate/site/index.js
diff options
context:
space:
mode:
authorcodepiano <codepiano.li@gmail.com>2014-10-31 18:00:09 +0800
committercodepiano <codepiano.li@gmail.com>2014-10-31 18:00:09 +0800
commit9da10e2b25cb8ad919bb8563cfdc81d9e0612341 (patch)
tree841729e1147b5863c1e34da861ff280816496b90 /lib/generate/site/index.js
parent1e4632080b64c7f100c3886454fedab70c7d8909 (diff)
downloadgitbook-9da10e2b25cb8ad919bb8563cfdc81d9e0612341.zip
gitbook-9da10e2b25cb8ad919bb8563cfdc81d9e0612341.tar.gz
gitbook-9da10e2b25cb8ad919bb8563cfdc81d9e0612341.tar.bz2
bugfix,init page object's lexed attribute.
the page object's attribute 'lexed' is not correctly inited.so when use page.lexed to generate the search index file,nothing will be indexed.
Diffstat (limited to 'lib/generate/site/index.js')
-rw-r--r--lib/generate/site/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js
index a62108b..8190381 100644
--- a/lib/generate/site/index.js
+++ b/lib/generate/site/index.js
@@ -120,7 +120,7 @@ Generator.prototype.prepareFile = function(content, _input) {
.then(function() {
// Lex, parse includes and get
// Get HTML generated sections
- return parse.page(page.content, {
+ return parse.page(page, {
// Local files path
dir: path.dirname(_input) || '/',
// Project's include folder