You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2014/02/08 04:52:47 UTC

svn commit: r1565910 - /myfaces/site/cms-site/trunk/lib/view.pm

Author: lu4242
Date: Sat Feb  8 03:52:47 2014
New Revision: 1565910

URL: http://svn.apache.org/r1565910
Log:
test how to fix documentation

Modified:
    myfaces/site/cms-site/trunk/lib/view.pm

Modified: myfaces/site/cms-site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/myfaces/site/cms-site/trunk/lib/view.pm?rev=1565910&r1=1565909&r2=1565910&view=diff
==============================================================================
--- myfaces/site/cms-site/trunk/lib/view.pm (original)
+++ myfaces/site/cms-site/trunk/lib/view.pm Sat Feb  8 03:52:47 2014
@@ -51,7 +51,7 @@ sub single_narrative {
         if (!(-d "content$basePath")){
             $basePath = "$ptdir";
         }
-        $args{pagetree} = pagetree("content$basePath");
+        $args{pagetree} = pagetree("content$basePath", $basePath);
     }
     
     # render tip box with reference to Confluence export
@@ -324,6 +324,7 @@ sub pagetree {
    # my $dir = "/content/wiki/core/user-guide/";
    # my $file = "content/wiki/core/user-guide/sitemap.html";
    my $baseDir = shift;
+   my $webDir = shift;
    my $file = $baseDir;
    my ($dir) = ($file =~ /^(.*)\/.*?/);
    my $entries = {};
@@ -334,7 +335,7 @@ sub pagetree {
    # $tdir =~ s{/\z}{};
 
    my $sitemap = "<ul>\n";
-   $sitemap = sitemapRender($sitemap, $entries, "$baseDir");
+   $sitemap = sitemapRender($sitemap, $entries, $webDir);
    $sitemap .= "</ul>\n";
    
    return $sitemap;