X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fdetails%2Fdoc.mc;h=07d7ad6b1c9073c94baae297cd1e08b256055808;hb=df8043ca3393100e8dd8ab2758ffe551b53577a8;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..07d7ad6 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.3 2006-11-16 12:16:18 mike Exp $ <%once> use Pod::Html; use IO::Dir; <%perl> +my $libdir = $r->dir_config("IRSpyLibDir"); my $module = $r->param("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; }