X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fcd242374852703578fad1dc49316d2571e67155..b8892821525cf5204c842476d26f530ddcca4908:/tools/doxygen/doxygen_postprocesser.pl diff --git a/tools/doxygen/doxygen_postprocesser.pl b/tools/doxygen/doxygen_postprocesser.pl index 54e9662009..29c500f479 100755 --- a/tools/doxygen/doxygen_postprocesser.pl +++ b/tools/doxygen/doxygen_postprocesser.pl @@ -3,7 +3,10 @@ use strict; # Add here the pages of the documentation generated by a @page doxygen macro -my @extra_files = qw(html/index.html html/faq.html html/history.html html/publis.html html/pages.html html/modules.html html/contrib.html index.php html/GRAS_tut.html); +my @extra_files = qw(html/index.html html/faq.html html/history.html html/contrib.html html/people.html + html/publis.html html/publis_core.html html/publis_extern.html html/publis_intra.html + html/pages.html html/modules.html index.php + html/GRAS_tut.html); # GRAS tutorial map {push @extra_files, "html/GRAS_tut_$_.html"} qw (intro @@ -147,6 +150,45 @@ close OUT; close IN; rename("html/modules.new.html","html/modules.html") unless $debug{'rename'}; +# the publication pages deserves some special handling too +my %pub_tabs = ("publis.html" =>"Reference publications", + "publis_core.html" =>"Other publication about SimGrid", + "publis_extern.html"=>"External papers using SimGrid", + "publis_intra.html"=>"Internal papers using SimGrid"); +# force ordering +my @pub_titles = ("publis.html", "publis_core.html", "publis_extern.html", "publis_intra.html"); +sub handle_pub{ + my $oldname = shift; + my $newname = $oldname; + $newname =~ s/\.html$/.new.html/; + +# print "Handle_pub($oldname -> $newname)\n"; + + open IN,"html/$oldname" || die "Cannot open $oldname"; + open OUT,">html/$newname" || die "Cannot open $newname"; + my $line; + while ($line = ) { + last if $line =~ /

/; + print OUT $line; + } + + print OUT "
\n
\n"; + print OUT $line; + while ($line = ) { + print OUT $line; + } + close OUT; + close IN; + rename("html/$newname","html/$oldname") unless $debug{'rename'}; +} +map {handle_pub($_)} @pub_titles; + + # Operate the recursion sub handle_page { my $current=shift; @@ -199,7 +241,18 @@ sub handle_page { # print "TAB: $_"; print TO "$_"; } + if ($current->{'file'} =~ m/^class/) { + while () { + last if (m||); + } + print TO "$_"; + } while () { + if (m/The documentation for/) { + while () { + last if (m/

/); + } + } print TO "$_"; } close FROM; @@ -223,6 +276,7 @@ handle_page($top,-2);# skip roots (we have 2 roots) in level counting ### Post-processsing common to all pages ### map {push @allfiles,$_} @extra_files; +print "All files: ".(join(", ",@allfiles))."\n" if $debug{'parse'}; foreach my $file (@allfiles) { $file =~ s/.html/.handlepage.html/ if $debug{'rename'}; # Take right name if debugging @@ -244,12 +298,14 @@ foreach my $file (@allfiles) { next; } if (m,

  • Data\ Structures
  • ,) { - print TO ' Publications'."\n"; + print TO ' Publications'."\n"; + print TO ' People'."\n"; print TO ' History'."\n"; + print TO ' Contrib'."\n"; next; } s|Modules|Modules API|g; -# s|
  • Directories
  • ||g; + s|Related Pages|Site Plan|g; print TO $_; }