[Rt-commit] rt branch, 4.2/static-docs-README-links, created. rt-4.2.8-7-g62d8a9e
Kevin Falcone
falcone at bestpractical.com
Fri Oct 10 17:58:08 EDT 2014
The branch, 4.2/static-docs-README-links has been created
at 62d8a9e0c59dcdee42789074352e716dec6025af (commit)
- Log -----------------------------------------------------------------
commit b5da6f26c81d5a58ffd6bfc1124b25d9296091d4
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Fri Oct 10 16:50:50 2014 -0400
Allow links to capitalized things
Our docs/ directory contains a bunch of stuff that isn't lower cased.
Similarly, one might write include a URI with capital letters.
I'm less concerned about the two more hardcoded config names or email
addresses being mixed case in our README/UPGRADING docs.
diff --git a/devel/tools/rt-static-docs b/devel/tools/rt-static-docs
index cb6aacf..a57cedc 100755
--- a/devel/tools/rt-static-docs
+++ b/devel/tools/rt-static-docs
@@ -153,10 +153,10 @@ for my $file (<README* UPGRADING*>) {
close $source;
$str = "<pre>$str</pre>";
- $str =~ s{\bdocs/([a-z_-]+)\.pod\b}{<a href="$1.html">docs/$1.pod</a>}g;
+ $str =~ s{\bdocs/([a-z_-]+)\.pod\b}{<a href="$1.html">docs/$1.pod</a>}ig;
$str =~ s{\betc/(RT_Config)\.pm\b}{<a href="$1.html">etc/$1.pm</a>}g;
$str =~ s{\betc/(UPRGADING\.mysql)\b}{<a href="$1.html">etc/$1</a>}g;
- $str =~ s{\b(https?://(?!rt\.example\.com)[.a-z0-9/-]+(?<!\.))}{<a href="$1">$1</a>}g;
+ $str =~ s{\b(https?://(?!rt\.example\.com)[.a-z0-9/-]+(?<!\.))}{<a href="$1">$1</a>}ig;
$str =~ s{\b([\w-]+\@(lists\.)?bestpractical.com)\b}{<a href="mailto:$1">$1</a>}g;
open my $html, ">", $dest
commit 62d8a9e0c59dcdee42789074352e716dec6025af
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Fri Oct 10 17:53:29 2014 -0400
Include _ in URLs
RTIR's readme links to RTIR_Config.pm in a URI which gets linked as
...RTIR</a>_Config.html
diff --git a/devel/tools/rt-static-docs b/devel/tools/rt-static-docs
index a57cedc..613ba9d 100755
--- a/devel/tools/rt-static-docs
+++ b/devel/tools/rt-static-docs
@@ -156,7 +156,7 @@ for my $file (<README* UPGRADING*>) {
$str =~ s{\bdocs/([a-z_-]+)\.pod\b}{<a href="$1.html">docs/$1.pod</a>}ig;
$str =~ s{\betc/(RT_Config)\.pm\b}{<a href="$1.html">etc/$1.pm</a>}g;
$str =~ s{\betc/(UPRGADING\.mysql)\b}{<a href="$1.html">etc/$1</a>}g;
- $str =~ s{\b(https?://(?!rt\.example\.com)[.a-z0-9/-]+(?<!\.))}{<a href="$1">$1</a>}ig;
+ $str =~ s{\b(https?://(?!rt\.example\.com)[.a-z0-9/_-]+(?<!\.))}{<a href="$1">$1</a>}ig;
$str =~ s{\b([\w-]+\@(lists\.)?bestpractical.com)\b}{<a href="mailto:$1">$1</a>}g;
open my $html, ">", $dest
-----------------------------------------------------------------------
More information about the rt-commit
mailing list