[Rt-commit] rt branch, 4.2/static-docs-readme-links-emails, created. rt-4.2.5-11-gff68567

Alex Vandiver alexmv at bestpractical.com
Thu Jun 12 18:01:48 EDT 2014


The branch, 4.2/static-docs-readme-links-emails has been created
        at  ff685674ac9be7137fbc8dc6a79bd83bb9e86720 (commit)

- Log -----------------------------------------------------------------
commit ff685674ac9be7137fbc8dc6a79bd83bb9e86720
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Thu Jun 12 18:01:42 2014 -0400

    Link basic links and emails from README

diff --git a/devel/tools/rt-static-docs b/devel/tools/rt-static-docs
index 4242bee..9683f87 100755
--- a/devel/tools/rt-static-docs
+++ b/devel/tools/rt-static-docs
@@ -154,6 +154,8 @@ for my $file (<README* UPGRADING*>) {
 
     $str = "<pre>$str</pre>";
     $str =~ s{\bdocs/([a-z_-]+)\.pod\b}{<a href="$1.html">docs/$1.pod</a>}g;
+    $str =~ s{\b(https?://[.a-z0-9/-]+(?<!\.))}{<a href="$1">$1</a>}g;
+    $str =~ s{\b(\w+\@bestpractical.com)\b}{<a href="mailto:$1">$1</a>}g;
 
     open my $html, ">", $dest
         or warn "Can't open $dest: $!", next;

-----------------------------------------------------------------------


More information about the rt-commit mailing list