summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@friendco.de>2014-04-06 16:04:28 -0700
committerAaron O'Mullan <aaron.omullan@friendco.de>2014-04-06 16:04:28 -0700
commit1a4b1968513c5baaf62c0947e328bc3c336e331c (patch)
tree6b0ba3dee00b482cd0e8882cc1cbe164fea6b0fc /lib
parent75a8d3069d526d7a2ff89bad5ac39b412b18c084 (diff)
downloadgitbook-1a4b1968513c5baaf62c0947e328bc3c336e331c.zip
gitbook-1a4b1968513c5baaf62c0947e328bc3c336e331c.tar.gz
gitbook-1a4b1968513c5baaf62c0947e328bc3c336e331c.tar.bz2
Add outdir option to generators' generateFile
Diffstat (limited to 'lib')
-rw-r--r--lib/generate/page/index.js3
-rw-r--r--lib/generate/site/index.js1
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/generate/page/index.js b/lib/generate/page/index.js
index 5be40c4..3ee368f 100644
--- a/lib/generate/page/index.js
+++ b/lib/generate/page/index.js
@@ -44,7 +44,8 @@ Generator.prototype.convertFile = function(content, input) {
.then(function() {
return parse.page(content, {
repo: that.options.githubId,
- dir: path.dirname(input) || '/'
+ dir: path.dirname(input) || '/',
+ outdir: './',
});
})
.then(function(sections) {
diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js
index fa43c58..ddd6bdc 100644
--- a/lib/generate/site/index.js
+++ b/lib/generate/site/index.js
@@ -92,6 +92,7 @@ Generator.prototype.convertFile = function(content, _input) {
return parse.page(lexed, {
repo: that.options.githubId,
dir: path.dirname(_input) || '/',
+ outdir: path.dirname(_input) || '/',
});
})
.then(function(sections) {