X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1fcc8dd3e67dc3f7c1e789459028a361a1c86b5f..52b41ba5f4cbc90aa34bb84e6774e880b00b2776:/tools/doxygen/doxygen_postprocesser.pl diff --git a/tools/doxygen/doxygen_postprocesser.pl b/tools/doxygen/doxygen_postprocesser.pl index 5ba927c692..d35168f9ab 100755 --- a/tools/doxygen/doxygen_postprocesser.pl +++ b/tools/doxygen/doxygen_postprocesser.pl @@ -5,13 +5,15 @@ use strict; # Add here the pages of the documentation generated by a @page doxygen macro my @extra_files = qw(html/index.html html/pages.html html/modules.html html/annotated.html html/functions.html html/functions_vars.html index.php - html/GRAS_tut.html html/tracing.html html/installSimgrid.html html/bindings.html html/options.html html/use.html html/gtnets.html - html/ns3.html); + html/GRAS_tut.html html/tracing.html html/platform.html html/install.html html/bindings.html + html/options.html html/use.html html/pls.html html/FAQ.html); # GRAS tutorial map {push @extra_files, "html/GRAS_tut_$_.html"} qw (intro tour tour_install tour_setup tour_simpleexchange tour_args tour_callbacks tour_globals - tour_logs tour_timers tour_exceptions tour_rpc); + tour_logs tour_timers tour_exceptions tour_simpledata tour_rpc tour_explicitwait + tour_message_recaping tour_staticstruct tour_pointers tour_dynar + tour_manualdatadef tour_exchangecb); # GRAS examples map {push @extra_files, "html/GRAS_ex_$_.html"} qw (ping mmrpc token timer); @@ -162,45 +164,6 @@ 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; @@ -251,8 +214,9 @@ sub handle_page { print TO "$_"; last if ((m||)&&($found_div_tabs)); } - + print TO "\n\n"; + foreach (@tabs) { # print "TAB: $_"; print TO "$_"; @@ -339,7 +303,6 @@ add_tabs_to_module_html; ### map {push @allfiles,$_} @extra_files; print "All files: ".(join(", ",@allfiles))."\n" if $debug{'parse'}; - my $tabs; foreach my $file (@allfiles) { @@ -385,31 +348,34 @@ foreach my $file (@allfiles) { $tmp_buff .= '
  • Forge
  • '."\n"; $tmp_buff .= '
  • Website
  • '."\n"; $tmp_buff .= '
  • Documentation index
  • '."\n"; + $tmp_buff .= '
  • FAQ
  • '."\n"; $tmp_buff .= $_; $tabs = 0; # Rework the navbar and add menu for use.html # Fix the current "button" of buggy Doxygen tabs if($file =~ /^html\/use.*/ - || $file =~ /^html\/installSimgrid.*/ + || $file =~ /^html\/install.*/ || $file =~ /^html\/options.*/ || $file =~ /^html\/tracing.*/ + || $file =~ /^html\/platform.*/ || $file =~ /^html\/bindings.*/ - || $file =~ /^html\/gtnets.*/ - || $file =~ /^html\/ns3.*/ + || $file =~ /^html\/pls.*/ || $file =~ /^html\/modules.*/ - || $file =~ /^html\/annotated.*/) + || $file =~ /^html\/annotated.*/ + || $file =~ /^html\/group__.*/ + || $file =~ /^html\/functions.*/ + || $file =~ /^html\/GRAS_tut_tour_.*/) { $tmp_buff .= '
    '."\n"; $tmp_buff .= '
    '."\n"; $tmp_buff .= ' '."\n"; @@ -425,7 +391,8 @@ foreach my $file (@allfiles) { # Rework the navbar # Fix the current "button" of buggy Doxygen tabs - if($file =~ /^html\/pages.*/) + if($file =~ /^html\/pages.*/ + || $file =~ /^html\/FAQ.*/) { my $filename = $file; $filename =~ s/html\///g; @@ -433,16 +400,33 @@ foreach my $file (@allfiles) { $tmp_buff =~ s/
  • /
  • /g; $tmp_buff =~ s/
  • /
  • /g; } + if($file =~ /^html\/group__.*/ + || $file =~ /^html\/GRAS_tut_tour_.*/) + { + $tmp_buff =~ s/
  • /
  • /g; + } + if($file =~ /^html\/functions.*/) + { + $tmp_buff =~ s/
  • /
  • /g; + } - print TO $tmp_buff; next; } s|Modules|Modules API|g; s|Related Pages
  • \n||g; - s|
  • Modules API
  • \n||g; - s|
  • Data Structures
  • \n||g; s|
  • Modules API
  • \n||g; + s|
  • Modules API
  • \n||g; + if($file =~ /^html\/group__.*/) + { + s|
  • |
  • |g; + s|
  • Modules API
  • \n|
  • Modules API
  • \n|g; + } + else + { + s|
  • Modules API
  • \n||g; + } + s|
  • Data Structures
  • \n||g; s|
  • Data Structures
  • \n||g; s|Related Pages<|Documentation index<|g;