third test to warn against reading guides in GitHub

This commit is contained in:
Xavier Noria 2014-12-23 23:24:06 +01:00
parent 82180f4ebd
commit f2bdca3bf9
2 changed files with 2 additions and 2 deletions

View File

@ -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>)

View File

@ -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
===============================