diff options
author | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-04-06 16:04:28 -0700 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-04-06 16:04:28 -0700 |
commit | 1a4b1968513c5baaf62c0947e328bc3c336e331c (patch) | |
tree | 6b0ba3dee00b482cd0e8882cc1cbe164fea6b0fc /lib | |
parent | 75a8d3069d526d7a2ff89bad5ac39b412b18c084 (diff) | |
download | gitbook-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.js | 3 | ||||
-rw-r--r-- | lib/generate/site/index.js | 1 |
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) { |