diff options
author | Xavier Noria <fxn@hashref.com> | 2014-12-23 23:17:58 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2014-12-23 23:18:51 +0100 |
commit | 82180f4ebdb1761268154083e5bd3881fc26f9ff (patch) | |
tree | 4858572371fe7450ab1c9b9d50d888ee5ff5d355 | |
parent | 5a877d504e8196c19b5f94653bba9db7d059b6b6 (diff) | |
download | rails-82180f4ebdb1761268154083e5bd3881fc26f9ff.tar.gz rails-82180f4ebdb1761268154083e5bd3881fc26f9ff.tar.bz2 rails-82180f4ebdb1761268154083e5bd3881fc26f9ff.zip |
second test to warn against reading guides in GitHub
-rw-r--r-- | guides/rails_guides/markdown/renderer.rb | 3 | ||||
-rw-r--r-- | guides/source/2_2_release_notes.md | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/guides/rails_guides/markdown/renderer.rb b/guides/rails_guides/markdown/renderer.rb index bf3f5c5aa3..d2945e0919 100644 --- a/guides/rails_guides/markdown/renderer.rb +++ b/guides/rails_guides/markdown/renderer.rb @@ -25,8 +25,7 @@ HTML def paragraph(text) if text =~ /^(TIP|IMPORTANT|CAUTION|WARNING|NOTE|INFO|TODO)[.:](.*?)/ convert_notes(text) - elsif text.include?('GITHUB-WARNING') - '' + elsif text.include?('DO NOT READ THIS FILE') 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 da23acda3c..f41724bfd1 100644 --- a/guides/source/2_2_release_notes.md +++ b/guides/source/2_2_release_notes.md @@ -1,4 +1,4 @@ -**GITHUB-WARNING: This is source code, guides are published in http://guides.rubyonrails.org.** +**DO NOT READ THIS FILE, guides are published in http://guides.rubyonrails.org.** Ruby on Rails 2.2 Release Notes =============================== |