summaryrefslogtreecommitdiffstats
path: root/lib/generate/site/index.js
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@friendco.de>2014-04-06 15:55:24 -0700
committerAaron O'Mullan <aaron.omullan@friendco.de>2014-04-06 15:55:24 -0700
commit75a8d3069d526d7a2ff89bad5ac39b412b18c084 (patch)
tree6fd750835abe0108d99c34899f8ce38d7334fbcf /lib/generate/site/index.js
parenteecb33baa8d5eb61a62236dbfaa0b136896e8e0e (diff)
downloadgitbook-75a8d3069d526d7a2ff89bad5ac39b412b18c084.zip
gitbook-75a8d3069d526d7a2ff89bad5ac39b412b18c084.tar.gz
gitbook-75a8d3069d526d7a2ff89bad5ac39b412b18c084.tar.bz2
Fix dir option in site generator
Use relative folder not absolute
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 474de2a..fa43c58 100644
--- a/lib/generate/site/index.js
+++ b/lib/generate/site/index.js
@@ -91,7 +91,7 @@ Generator.prototype.convertFile = function(content, _input) {
// Get HTML generated sections
return parse.page(lexed, {
repo: that.options.githubId,
- dir: path.dirname(input) || '/'
+ dir: path.dirname(_input) || '/',
});
})
.then(function(sections) {