X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Fdoc.mc;h=58c255f626845e474f638ef260e132774567f338;hb=38ef7e0de0bae04ba0246355a4b197590f0afa22;hp=8d71d8ab9f10b39c74b287396d74a74ba737aa5c;hpb=c32248b34e3b893f285b6e3de9f13d14c436080a;p=irspy-moved-to-github.git diff --git a/web/htdocs/details/doc.mc b/web/htdocs/details/doc.mc index 8d71d8a..58c255f 100644 --- a/web/htdocs/details/doc.mc +++ b/web/htdocs/details/doc.mc @@ -1,20 +1,21 @@ -%# $Id: doc.mc,v 1.1 2006-09-28 16:48:20 mike Exp $ +%# $Id: doc.mc,v 1.4 2007-05-03 14:13:19 mike Exp $ <%once> use Pod::Html; use IO::Dir; <%perl> -my $module = $r->param("module"); +my $libdir = $r->dir_config("IRSpyLibDir"); +my $module = utf8param($r, "module"); if (!defined $module) { print " \n"; } else { print "Documentation for '$module'\n"; { my $dir = "/tmp/pod2html"; mkdir $dir; chdir $dir || die $!; } # For some reason, output to standard output doesn't appear my $name = "ZOOM.html"; - pod2html("$LIBDIR/$module", "--outfile=$name"); + pod2html("$libdir/$module", "--outfile=$name"); open F, "<$name" or die "can't open '$name': $!"; my $text = join("", ); close F; @@ -30,7 +31,7 @@ sub render_doc_links { or die "can't open directory handle for '$base/$dir'"; print " " x $level, "
  • $dir
  • \n"; - print " " x $level, "\n"; undef $dh; }