Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Added a platform desc doc. Some infos are still missing, but I have to check them...
[simgrid.git] / tools / doxygen / doxygen_postprocesser.pl
index 026d291..fe7fc39 100755 (executable)
@@ -5,8 +5,8 @@ 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/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 
@@ -251,8 +251,9 @@ sub handle_page {
       print TO "$_";
       last if ((m|</div>|)&&($found_div_tabs));
     }
-      
+    
     print TO "\n<!-- POST-PROCESSED TABS -->\n";
+             
     foreach (@tabs) {
 #      print "TAB: $_";
       print TO "$_";
@@ -339,7 +340,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,29 +385,34 @@ foreach my $file (@allfiles) {
                $tmp_buff .= '      <li><a href="http://gforge.inria.fr/projects/simgrid"><span>Forge</span></a></li>'."\n";
                $tmp_buff .= '      <li><a href="http://simgrid.gforge.inria.fr/"><span>Website</span></a></li>'."\n";
                $tmp_buff .= '      <li><a href="pages.html"><span>Documentation&nbsp;index</span></a></li>'."\n";
+               $tmp_buff .= '      <li><a href="FAQ.html"><span>FAQ</span></a></li>'."\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\/options.*/ 
+             || $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.*/)
              {
                                $tmp_buff .= '      <div class="tabs_group_use">'."\n";
                                $tmp_buff .= '          <ul class="tablist">'."\n";
-                               $tmp_buff .= '          <li><a href="installSimgrid.html"><span>Install SimGrid</span></a></li>'."\n";
+                               $tmp_buff .= '          <li><a href="install.html"><span>Install SimGrid</span></a></li>'."\n";
                                $tmp_buff .= '          <li><a href="modules.html"><span>Modules&#160;API</span></a></li>'."\n";
                        $tmp_buff .= '          <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>'."\n";
                                $tmp_buff .= '          <li><a href="options.html"><span>Options & configurations</span></a></li>'."\n";
+                               $tmp_buff .= '          <li><a href="platform.html"><span>Platform description</span></a></li>'."\n";
+                               $tmp_buff .= '          <li><a href="tracing.html"><span>Tracing Simulations</span></a></li>'."\n";
                                $tmp_buff .= '          <li><a href="bindings.html"><span>Bindings</span></a></li>'."\n";
-                               $tmp_buff .= '          <li><a href="gtnets.html"><span>GTNets</span></a></li>'."\n";
-                               $tmp_buff .= '          <li><a href="ns3.html"><span>NS3</span></a></li>'."\n";
+                               $tmp_buff .= '          <li><a href="pls.html"><span>Packet level simulation</span></a></li>'."\n";
                                $tmp_buff .= '          </ul></div>'."\n";
                                $tmp_buff .= '      </div>'."\n";
                                
@@ -423,7 +428,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;
@@ -431,6 +437,14 @@ foreach my $file (@allfiles) {
                      $tmp_buff =~ s/<li class="current">/<li>/g;
                      $tmp_buff =~ s/<li><a href="$filename.html">/<li class="current"><a href="$filename.html">/g;     
              }
+             if($file =~ /^html\/group__.*/)
+             {
+               $tmp_buff =~ s/<li><a href="modules.html">/<li class="current"><a href="modules.html">/g;
+             }
+             if($file =~ /^html\/functions.*/)
+             {
+               $tmp_buff =~ s/<li><a href="annotated.html">/<li class="current"><a href="annotated.html">/g;
+             }
              
 
              print TO $tmp_buff;             
@@ -438,9 +452,18 @@ foreach my $file (@allfiles) {
     }
       s|<span>Modules</span>|<span>Modules&#160;API</span>|g;
       s|<li.*><a href="pages.html"><span>Related&#160;Pages</span></a></li>\n||g;
-      s|<li><a href="modules.html"><span>Modules&#160;API</span></a></li>\n||g;
-      s|<li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>\n||g;
       s|<li class="current"><a href="modules.html"><span>Modules&#160;API</span></a></li>\n||g;
+      s|<li class="current"><a href="modules.html"><span>Modules&nbsp;API</span></a></li>\n||g;
+      if($file =~ /^html\/group__.*/)
+      {
+       s|<li><a href="use.html">|<li class="current"><a href="use.html">|g;
+       s|<li><a href="modules.html"><span>Modules&#160;API</span></a></li>\n|<li class="current"><a href="modules.html"><span>Modules&#160;API</span></a></li>\n|g;
+      }
+      else
+      {
+       s|<li><a href="modules.html"><span>Modules&#160;API</span></a></li>\n||g;
+      }
+      s|<li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>\n||g;    
       s|<li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>\n||g;
       s|Related Pages<|Documentation&nbsp;index<|g;