Skip to content

Commit

Permalink
Dont fetch images from internet
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo committed Oct 21, 2008
1 parent 4a73524 commit 5ca4cac
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion railties/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 ----------------------------------------------------------------------------
Expand Down
Binary file added railties/doc/guides/source/images/bullet.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion railties/doc/guides/source/templates/guides.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion railties/doc/guides/source/templates/inline.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5ca4cac

Please sign in to comment.