diff options
author | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-04-04 11:04:57 -0700 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-04-04 11:04:58 -0700 |
commit | f952fa47b937e6720e3d2677933b858f980672a6 (patch) | |
tree | 1128babc2e8855abf45b3ac6f1f83d50d24f0754 /lib/generate/generator_site.js | |
parent | 1984660930a7ab113a20afce1dc08d10750e372d (diff) | |
download | gitbook-f952fa47b937e6720e3d2677933b858f980672a6.zip gitbook-f952fa47b937e6720e3d2677933b858f980672a6.tar.gz gitbook-f952fa47b937e6720e3d2677933b858f980672a6.tar.bz2 |
Use relative symlink between index & README
Fixes #19, fixes #21
Diffstat (limited to 'lib/generate/generator_site.js')
-rw-r--r-- | lib/generate/generator_site.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/generate/generator_site.js b/lib/generate/generator_site.js index 7d40a1a..18e9813 100644 --- a/lib/generate/generator_site.js +++ b/lib/generate/generator_site.js @@ -36,7 +36,7 @@ Generator.prototype.convertFile = function(content, _input) { var input = path.join(this.options.input, _input); var output = path.join(this.options.output, _output); var basePath = path.relative(path.dirname(output), this.options.output) || "."; - + return Q() .then(function() { return parse.page(content, { @@ -77,7 +77,7 @@ Generator.prototype.finish = function() { var that = this; return fs.symlink( - path.join(that.options.output, 'README.html'), + 'README.html', path.join(that.options.output, 'index.html') ) .then(function() { |