updated docs and path to my repo
[sdlgit/SDL-Site.git] / tools / PM-Pod2html-snippet.pl
index c1a67f4..34dd814 100644 (file)
@@ -7,7 +7,7 @@ use Pod::Xhtml;
 use File::Copy;
 use File::Spec::Functions qw(rel2abs splitpath splitdir catpath catdir catfile canonpath);
 
-my $input_path      = 'C:/SDL_perl/lib/pods';
+my $input_path      = 'D:/dev/SDL_perl/lib/pods';
    $input_path   = $ARGV[0] if $ARGV[0];
 
 my ($volume, $dirs) = splitpath(rel2abs(__FILE__));
@@ -184,8 +184,9 @@ sub node
                
                if($page =~ /^SDL\b/)
                {
-                       $page =~ s/::([A-Z])+/-$1/g;
+                       $page =~ s/::([A-Z]+)/-$1/g;
                        $page =~ s/(.*)::(.*)/\/$1.html#$2/;
+                       $page .= '.html' unless $page =~ /\.html/;
                        
                        return $page;
                }