aboutsummaryrefslogtreecommitdiffstats
path: root/railties/Rakefile
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-10-21 17:26:25 +0100
committerPratik Naik <pratiknaik@gmail.com>2008-10-21 17:26:25 +0100
commit5ca4cacfd1b27b64100b0914d9c3c80ad79d1e7a (patch)
tree5d47df673ebcd2d19fcabc15956559daac8e95b5 /railties/Rakefile
parent4a7352401871fdc80297311f96e0684f5eadca4d (diff)
downloadrails-5ca4cacfd1b27b64100b0914d9c3c80ad79d1e7a.tar.gz
rails-5ca4cacfd1b27b64100b0914d9c3c80ad79d1e7a.tar.bz2
rails-5ca4cacfd1b27b64100b0914d9c3c80ad79d1e7a.zip
Dont fetch images from internet
Diffstat (limited to 'railties/Rakefile')
-rw-r--r--railties/Rakefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/railties/Rakefile b/railties/Rakefile
index 01be83fb35..59cbcf2322 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -299,7 +299,7 @@ task :guides do
input = File.join(source, entry)
output = File.join(html, entry).sub(/\.txt$/, '')
end
-
+
begin
puts "GENERATING => #{output}"
ENV['MANUALSONRAILS_TOC'] = 'no' if indexless.include?(entry)
@@ -311,6 +311,10 @@ task :guides do
ENV.delete('MANUALSONRAILS_TOC')
end
end
+
+ # Copy images and css files to html directory. These dirs are in .gitigore and shouldn't be source controlled.
+ FileUtils.cp_r File.join(source, 'images'), File.join(html, 'images')
+ FileUtils.cp_r File.join(source, 'stylesheets'), File.join(html, 'stylesheets')
end
# Generate GEM ----------------------------------------------------------------------------