aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2014-12-23 23:24:06 +0100
committerXavier Noria <fxn@hashref.com>2014-12-23 23:24:06 +0100
commitf2bdca3bf92e44f34e5cb24681da772817a38e6e (patch)
tree66b2a1d62019f83007f38bc1282573179d3d7e74 /guides
parent82180f4ebdb1761268154083e5bd3881fc26f9ff (diff)
downloadrails-f2bdca3bf92e44f34e5cb24681da772817a38e6e.tar.gz
rails-f2bdca3bf92e44f34e5cb24681da772817a38e6e.tar.bz2
rails-f2bdca3bf92e44f34e5cb24681da772817a38e6e.zip
third test to warn against reading guides in GitHub
Diffstat (limited to 'guides')
-rw-r--r--guides/rails_guides/markdown/renderer.rb2
-rw-r--r--guides/source/2_2_release_notes.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/guides/rails_guides/markdown/renderer.rb b/guides/rails_guides/markdown/renderer.rb
index d2945e0919..c8bdd01ea0 100644
--- a/guides/rails_guides/markdown/renderer.rb
+++ b/guides/rails_guides/markdown/renderer.rb
@@ -25,7 +25,7 @@ HTML
def paragraph(text)
if text =~ /^(TIP|IMPORTANT|CAUTION|WARNING|NOTE|INFO|TODO)[.:](.*?)/
convert_notes(text)
- elsif text.include?('DO NOT READ THIS FILE')
+ elsif text.include?('DO NOT READ THIS FILE IN GITHUB')
elsif text =~ /^\[<sup>(\d+)\]:<\/sup> (.+)$/
linkback = %(<a href="#footnote-#{$1}-ref"><sup>#{$1}</sup></a>)
%(<p class="footnote" id="footnote-#{$1}">#{linkback} #{$2}</p>)
diff --git a/guides/source/2_2_release_notes.md b/guides/source/2_2_release_notes.md
index f41724bfd1..019da08687 100644
--- a/guides/source/2_2_release_notes.md
+++ b/guides/source/2_2_release_notes.md
@@ -1,4 +1,4 @@
-**DO NOT READ THIS FILE, guides are published in http://guides.rubyonrails.org.**
+**DO NOT READ THIS FILE IN GITHUB, GUIDES ARE PUBLISHED IN http://guides.rubyonrails.org.**
Ruby on Rails 2.2 Release Notes
===============================