[Rt-commit] rt branch, 5.0/readme-backups-link, updated. rt-5.0.0-98-g23a942d62f

? sunnavy sunnavy at bestpractical.com
Fri Nov 6 08:57:20 EST 2020


The branch, 5.0/readme-backups-link has been updated
       via  23a942d62f9f88a28536ad44bf5979b6d3d26213 (commit)
      from  ea562dfbba14dc5056f3717308b8aab01d5a493c (commit)

Summary of changes:
 devel/tools/rt-static-docs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 23a942d62f9f88a28536ad44bf5979b6d3d26213
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Nov 6 21:46:28 2020 +0800

    Support to link pods in subdirectories for README/UPGRADING docs
    
    This is to fix the link of docs/system_administration/database.pod

diff --git a/devel/tools/rt-static-docs b/devel/tools/rt-static-docs
index fafac7d863..d5a43648a6 100755
--- a/devel/tools/rt-static-docs
+++ b/devel/tools/rt-static-docs
@@ -154,7 +154,7 @@ 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>}ig;
+    $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;

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


More information about the rt-commit mailing list