X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4cb158ece7d128b374f76d760012d4bd69dd4989..8222f8d9049626eec0ff3e39bdef19b541eea164:/tools/doxygen/doxygen_postprocesser.pl diff --git a/tools/doxygen/doxygen_postprocesser.pl b/tools/doxygen/doxygen_postprocesser.pl index 83e3ee74e3..22b3d7da63 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/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/people.html + html/publis.html html/publis_core.html html/publis_extern.html html/publis_intra.html + html/pages.html html/modules.html html/contrib.html index.php + html/GRAS_tut.html); # GRAS tutorial map {push @extra_files, "html/GRAS_tut_$_.html"} qw (intro @@ -38,9 +41,9 @@ my $entry; $current->{'label'}="ROOT"; push @{$top->{'down'}},$current; +print "Push $current as child of $top\n" if $debug{'parse'}; $current=$top; -print "Push $current as child of $top\n" if $debug{'parse'}; while () { if (/|; + s|
  • [^<]*
  • |
  • Modules API
  • |; +# print "++Write $_"; + print TO "$_"; + last if (m||); } foreach (@tabs) { - print TO $_; +# print "TAB: $_"; + print TO "$_"; + } + if ($current->{'file'} =~ m/^class/) { + while () { + last if (m||); + } + print TO "$_"; } while () { - print TO $_; + if (m/The documentation for/) { + while () { + last if (m/

    /); + } + } + print TO "$_"; } close FROM; close TO; rename("$newname","html/$current->{'file'}") unless $debug{'rename'}; -# print "mv $newname html/$current->{'file'}\n"; } # recurse on childs @@ -218,8 +276,11 @@ 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 + open FROM,"$file" || die; my $outfile = "$file"; $outfile =~ s/.(html|php)$/.new.$1/; @@ -232,16 +293,18 @@ foreach my $file (@allfiles) { # Rework the navbar if (m,

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