summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@friendco.de>2014-04-05 01:05:31 -0700
committerAaron O'Mullan <aaron.omullan@friendco.de>2014-04-05 01:05:31 -0700
commitac258329ff37053bb23b17a8d17a23cf9ab822e0 (patch)
treefb0cbff1d02bd1d2bf3a59227891532cab8a4862 /lib
parentd5bd08dcd21c838ef9da5d8a54ee5f847b737a02 (diff)
downloadgitbook-ac258329ff37053bb23b17a8d17a23cf9ab822e0.zip
gitbook-ac258329ff37053bb23b17a8d17a23cf9ab822e0.tar.gz
gitbook-ac258329ff37053bb23b17a8d17a23cf9ab822e0.tar.bz2
Copy README.html to index.html instead of symlimk
Fixes #28
Diffstat (limited to 'lib')
-rw-r--r--lib/generate/site/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js
index 84a0d2f..487b6d6 100644
--- a/lib/generate/site/index.js
+++ b/lib/generate/site/index.js
@@ -77,8 +77,8 @@ Generator.prototype.convertFile = function(content, _input) {
Generator.prototype.finish = function() {
var that = this;
- return fs.symlink(
- 'README.html',
+ return fs.copy(
+ path.join(that.options.output, 'README.html'),
path.join(that.options.output, 'index.html')
)
.then(function() {