diff options
Diffstat (limited to 'railties/Rakefile')
-rw-r--r-- | railties/Rakefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/railties/Rakefile b/railties/Rakefile index 32146ced77..4f49409b18 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -278,6 +278,9 @@ task :guides do source = "doc/guides/source/" html = "doc/guides/html/" + FileUtils.rm_r(html) if File.directory?(html) + FileUtils.mkdir(html) + ignore = ['icons', 'images'] ignore << 'active_record_basics.txt' @@ -288,7 +291,7 @@ task :guides do if File.directory?(File.join(source, entry)) input = File.join(source, entry, 'index.txt') - output = File.join(html, "#{entry}.html") + output = File.join(html, entry) else input = File.join(source, entry) output = File.join(html, entry).sub(/\.txt$/, '') |