Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add options and configurations page.
[simgrid.git] / tools / doxygen / doxygen_postprocesser.pl
index 5e4cf2b..9e96caf 100755 (executable)
@@ -6,7 +6,7 @@ use strict;
 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 html/annotated.html html/functions.html html/functions_vars.html index.php 
-                     html/GRAS_tut.html html/installSimgrid.html html/bindings.html);
+                     html/GRAS_tut.html html/installSimgrid.html html/bindings.html html/options.html html/use.html);
 
 # GRAS tutorial
 map {push @extra_files, "html/GRAS_tut_$_.html"} qw (intro 
@@ -381,10 +381,8 @@ foreach my $file (@allfiles) {
       }
       if( $_ =~ /<\/ul>/ && $tabs){
                my $tmp_buff="";
-               $tmp_buff .= '      <li><a href="installSimgrid.html"><span>Install SimGrid</span></a></li>'."\n";
-               $tmp_buff .= '      <li><a href="bindings.html"><span>Bindings</span></a></li>'."\n";
-               $tmp_buff .= '      <li><a href="faq.html"><span>FAQ&#160;Page</span></a></li>'."\n";
-               $tmp_buff .= '     <li><a href="publis.html"><span>Publications</span></a></li>'."\n";
+               $tmp_buff .= '      <li><a href="use.html"><span>Use SimGrid</span></a></li>'."\n";
+               $tmp_buff .= '      <li><a href="publis.html"><span>Publications</span></a></li>'."\n";
                $tmp_buff .= '      <li><a href="people.html"><span>People</span></a></li>'."\n";
                $tmp_buff .= '      <li><a href="history.html"><span>History</span></a></li>'."\n";
                $tmp_buff .= '      <li><a href="contrib.html"><span>Contrib</span></a></li>'."\n";
@@ -392,16 +390,40 @@ foreach my $file (@allfiles) {
                $tmp_buff .= '      <li><a href="http://simgrid.gforge.inria.fr/"><span>Home</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\/bindings.*/
+             || $file =~ /^html\/faq.*/)
+             {
+                               $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="options.html"><span>Options & configurations</span></a></li>'."\n";
+                               $tmp_buff .= '          <li><a href="bindings.html"><span>Bindings</span></a></li>'."\n";
+                               $tmp_buff .= '          <li><a href="faq.html"><span>FAQ&#160;Page</span></a></li>'."\n";
+                               $tmp_buff .= '          </ul></div>'."\n";
+                               $tmp_buff .= '      </div>'."\n";
+                               
+                               my $filename = $file;
+                       $filename =~ s/html\///g;
+                       $filename =~ s/\.html//g;
+                       $filename =~ s/publis_.*/publis/g;
+                       $tmp_buff =~ s/<li class="current">/<li>/g;
+                       $tmp_buff =~ s/<li><a href="$filename.html">/<li class="current"><a href="$filename.html">/g;
+                       $tmp_buff =~ s/<li><a href="use.html">/<li class="current"><a href="$filename.html">/g; 
+                               
+             }
        
              # Rework the navbar
              # Fix the current "button" of buggy Doxygen tabs   
-             if($file =~ /^html\/faq.*/ 
-             || $file =~ /^html\/publis.*/ 
+             if($file =~ /^html\/publis.*/ 
              || $file =~ /^html\/people.*/ 
              || $file =~ /^html\/history.*/ 
-             || $file =~ /^html\/contrib.*/
-             || $file =~ /^html\/installSimgrid.*/
-                 || $file =~ /^html\/bindings.*/)
+             || $file =~ /^html\/contrib.*/)
              {
                      my $filename = $file;
                      $filename =~ s/html\///g;
@@ -410,11 +432,13 @@ 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;           
              }
-             print TO $tmp_buff;
+             
+
+             print TO $tmp_buff;             
              next;
     }
       
-      s|<span>Modules</span>|<span>Modules API</span>|g;
+      s|<span>Modules</span>|<span>Modules&#160;API</span>|g;
       s|<span>Related&nbsp;Pages</span>|<span>Site&nbsp;Plan</span>|g;
                                                                                                  
       print TO $_;