summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8d24740)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3615
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
$current->{'label'}="ROOT";
push @{$top->{'down'}},$current;
$current->{'label'}="ROOT";
push @{$top->{'down'}},$current;
+print "Push $current as child of $top\n" if $debug{'parse'};
-print "Push $current as child of $top\n" if $debug{'parse'};
while (<IN>) {
if (/<ul>/) {
while (<IN>) {
if (/<ul>/) {
while (<IN>) {
if (/DOXYGEN_NAVBAR_LABEL/) {
if (/DOXYGEN_NAVBAR_LABEL="([^"]*)"/) {#"
while (<IN>) {
if (/DOXYGEN_NAVBAR_LABEL/) {
if (/DOXYGEN_NAVBAR_LABEL="([^"]*)"/) {#"
+ print "Extra info from $current->{'file'}: label=$1, not $current->{'label'}\n" if $debug{'parse'};
$current->{'label'}=$1;
} else {
die "Malformated DOXYGEN_NAVBAR_LABEL line in $current->{'file'}";
$current->{'label'}=$1;
} else {
die "Malformated DOXYGEN_NAVBAR_LABEL line in $current->{'file'}";
chomp($entry->{'file'});
$entry->{'up'} = $current;
push @{$current->{'down'}},$entry;
chomp($entry->{'file'});
$entry->{'up'} = $current;
push @{$current->{'down'}},$entry;
+ print "Extra info from $current->{'file'}: New child $entry->{'label'}=$entry->{'file'}\n" if $debug{'parse'};
} else {
die "Malformated DOXYGEN_NAVBAR_CHILD line in $current->{'file'}";
}
} else {
die "Malformated DOXYGEN_NAVBAR_CHILD line in $current->{'file'}";
}
my $father = $iterator->{'up'};
$tabs[$lvl_it] = "<div class=\"tabs\">\n <ul>\n";
foreach my $bro (@{$father->{'down'}}) {
my $father = $iterator->{'up'};
$tabs[$lvl_it] = "<div class=\"tabs\">\n <ul>\n";
foreach my $bro (@{$father->{'down'}}) {
- $tabs[$lvl_it] .= " <li".($bro==$iterator?" id=\"current\"":"")."> <a href=\"$bro->{'file'}\"><span>$bro->{'label'}</span></a></li>\n";
+ $tabs[$lvl_it] .= " <li".($bro==$iterator?" class=\"current\"":"")."> <a href=\"$bro->{'file'}\"><span>$bro->{'label'}</span></a></li>\n";
}
$tabs[$lvl_it] .= " </ul></div>\n";
$iterator = $father;
}
$tabs[$lvl_it] .= " </ul></div>\n";
$iterator = $father;
# put them in place
open FROM,"html/$current->{'file'}" || die;
my $newname="html/$current->{'file'}";
# put them in place
open FROM,"html/$current->{'file'}" || die;
my $newname="html/$current->{'file'}";
- $newname =~ s/.html/.new.html/;
+ $newname =~ s/.html/.handlepage.html/;
open TO,">$newname" || die;
open TO,">$newname" || die;
+# print "XXX Deal with html/$current->{'file'} -> $newname\n";
# add "current" to the module API granfather page
# add "current" to the module API granfather page
- s|<li><a href="modules.html"><span>[^<]*</span></a></li>|<li id="current"><a href="modules.html"><span>Modules API</span></a></li>|;
- print TO $_;
- last if m|</ul></div>|;
+ s|<li><a href="modules.html"><span>[^<]*</span></a></li>|<li class="current"><a href="modules.html"><span>Modules API</span></a></li>|;
+# print "++Write $_";
+ print TO "$_";
+ last if (m|</div>|);
+# print "TAB: $_";
+ print TO "$_";
}
close FROM;
close TO;
rename("$newname","html/$current->{'file'}") unless $debug{'rename'};
}
close FROM;
close TO;
rename("$newname","html/$current->{'file'}") unless $debug{'rename'};
-# print "mv $newname html/$current->{'file'}\n";
map {push @allfiles,$_} @extra_files;
foreach my $file (@allfiles) {
map {push @allfiles,$_} @extra_files;
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/;
open FROM,"$file" || die;
my $outfile = "$file";
$outfile =~ s/.(html|php)$/.new.$1/;
# Rework the navbar
if (m,<li><a href="(doc/)?index.html"><span>Main\ Page</span></a></li>,) {
# Rework the navbar
if (m,<li><a href="(doc/)?index.html"><span>Main\ Page</span></a></li>,) {
- print TO '<li><a href="'.$1.'index.html"><span>Overview</span></a></li>'."\n";
- print TO '<li><a href="'.$1.'faq.html"><span>FAQ</span></a></li>'."\n";
+ print TO ' <li'.($file =~ m,(doc/)?index.html, ? " class='current'" :"").'><a href="'.$1.'index.html"><span>Overview</span></a></li>'."\n";
+ print TO ' <li'.($file =~ m,(doc/)?faq.html, ? " class='current'" :"").'><a href="'.$1.'faq.html"><span>FAQ</span></a></li>'."\n";
next;
}
if (m,<li><a href="(doc/)?annotated.html"><span>Data\ Structures</span></a></li>,) {
next;
}
if (m,<li><a href="(doc/)?annotated.html"><span>Data\ Structures</span></a></li>,) {
- print TO '<li><a href="'.$1.'publis.html"><span>Publications</span></a></li>'."\n";
+ print TO ' <li'.($file =~ m,(doc/)?publis.html, ? " class='current'" :"").'><a href="'.$1.'publis.html"><span>Publications</span></a></li>'."\n";
next;
}
s|<span>Modules</span>|<span>Modules API</span>|g;
next;
}
s|<span>Modules</span>|<span>Modules API</span>|g;