X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d311bdd17ad860b7564bb17c55a872a7536c16aa..ada64beec413781e8e11cc6106c5411962cac0fb:/tools/doxygen/doxygen_postprocesser.pl?ds=sidebyside
diff --git a/tools/doxygen/doxygen_postprocesser.pl b/tools/doxygen/doxygen_postprocesser.pl
index 6481604be9..f50d016372 100755
--- a/tools/doxygen/doxygen_postprocesser.pl
+++ b/tools/doxygen/doxygen_postprocesser.pl
@@ -211,7 +211,8 @@ sub handle_page {
# we generate the tabs bottom up begining from where we are in the tree
# and display them top down, as it should in a file
my @tabs = ();
-
+ my $found_div_tabs=0;
+
if (defined ($current->{'label'}) and $current->{'label'} ne 'ROOT') {
# print "handle $current->{'file'}, at level $level\n";
# generate the tabs
@@ -246,8 +247,9 @@ sub handle_page {
# add "current" to the module API granfather page
s|
|;
# print "++Write $_";
+ $found_div_tabs=1 if m/div.*class="tabs"/;
print TO "$_";
- last if (m||);
+ last if ((m||)&&($found_div_tabs));
}
print TO "\n\n";
@@ -258,26 +260,26 @@ sub handle_page {
print TO "\n\n";
if ($current->{'file'} =~ m/^class/) {
- while () {
- last if (m||);
- }
+ while () {
+ last if (m||);
+ }
print TO "$_";
}
while () {
if (m/POST-PROCESSED TABS/) {
- while () {
+ while () {
last if (m/END OF POST-PROCESSED TABS/);
- }
- next;
+ }
+ next;
}
if (m/The documentation for/) {
- while () {
+ while () {
last if (m/
/);
- }
+ }
}
print TO "$_";
- }
+ }
close FROM;
close TO;
rename("$newname","html/$current->{'file'}") unless $debug{'rename'};
@@ -292,8 +294,45 @@ sub handle_page {
###
### Launch the modules navbar reworking
###
-handle_page($top,-2);# skip roots (we have 2 roots) in level counting
+handle_page($top,-1);# skip roots (we have 2 roots) in level counting
+
+###
+### Add the modules navbar reworking to the modules.html file
+###
+sub add_tabs_to_module_html {
+ my $found_div_tabs=0;
+ my $module_tabs = "