summaryrefslogtreecommitdiffstats
path: root/lib/generate/generator_site.js
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@friendco.de>2014-04-04 11:04:57 -0700
committerAaron O'Mullan <aaron.omullan@friendco.de>2014-04-04 11:04:58 -0700
commitf952fa47b937e6720e3d2677933b858f980672a6 (patch)
tree1128babc2e8855abf45b3ac6f1f83d50d24f0754 /lib/generate/generator_site.js
parent1984660930a7ab113a20afce1dc08d10750e372d (diff)
downloadgitbook-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.js4
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() {