Permalink
Browse files

Dont fetch images from internet

  • Loading branch information...
lifo committed Oct 21, 2008
1 parent 4a73524 commit 5ca4cacfd1b27b64100b0914d9c3c80ad79d1e7a
View
@@ -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 ----------------------------------------------------------------------------
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -20,7 +20,7 @@
<body>
<div id="header" <% if !show_toc %> class="notoc"<% end %>>
<div id="logo">
- <a href="http://www.rubyonrails.org/" title="Ruby on Rails"><img src="http://web.rubyonrails.com/images/rails_logo_remix.gif" alt="Rails" height="140" width="110" /></a>
+ <a href="http://guides.rubyonrails.org/" title="Ruby on Rails"><img src="images/rails_logo_remix.gif" alt="Rails" height="140" width="110" /></a>
</div>
<h1 id="site_title"><span>Ruby on Rails</span></h1>
@@ -67,7 +67,7 @@ dd {
}
div#header h1#site_title {
- background: url('http://web.rubyonrails.com/images/ruby_on_rails_by_mike_rundle2.gif') top left no-repeat;
+ background: url('images/ruby_on_rails_by_mike_rundle2.gif') top left no-repeat;
position: absolute;
width: 392px;
height: 55px;

0 comments on commit 5ca4cac

Please sign in to comment.