use strict;
# Add here the pages of the documentation generated by a @page doxygen macro
-my @extra_files = qw(html/index.html html/faq.html html/history.html
- html/publis.html html/publis_core.html html/publis_extern.html html/publis_intra.html
- html/pages.html html/modules.html html/contrib.html index.php
+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 index.php
html/GRAS_tut.html);
# GRAS tutorial
my $current;
my $entry;
-$current->{'label'}="ROOT";
-push @{$top->{'down'}},$current;
-print "Push $current as child of $top\n" if $debug{'parse'};
+# $current->{'label'}="ROOT";
+# push @{$top->{'down'}},$current;
+# print "Push $current '".($current->{'label'})."' as child of $top '".($top->{'label'})."'\n" if $debug{'parse'};
+# $current=$top;
+$top->{'label'}="ROOT";
+print "Create ROOT $top\n" if $debug{'parse'};
$current=$top;
+# Read the whole data to postprocess it a bit
+my $in;
while (<IN>) {
+ $in .= $_;
+}
+$in =~ s/<ul>/\n<ul>\n/sg;
+foreach $_ (split(/\n/,$in)) {
+ next unless length($_);
+ next if ($_ =~ m|^</li>$|);
+ print " Seen '$_'\n" if $debug{'parse'};
if (/<ul>/) {
- print "DOWN: $current -> " if $debug{'parse'};
+ print "DOWN: $current '$current->{'label'}' -> " if $debug{'parse'};
$current = $current->{'down'}[scalar @{$current->{'down'}} - 1];
- print "$current\n" if $debug{'parse'};
+ print "$current '$current->{'label'}'\n" if $debug{'parse'};
next;
}
if (/<\/ul>/) {
$current = $current->{'up'};
- print "UP\n" if $debug{'parse'};
+ print "UP to $current '$current->{'label'}'\n" if $debug{'parse'};
next;
}
if (/<p>/) {
$entry->{'label'} = $2;
$entry->{'up'} = $current;
push @{$current->{'down'}},$entry;
- print "Push $1 $2 as child of $current\n" if $debug{'parse'};
+ print "Push file:$1 label:'$2' as child of $current '$current->{'label'}'\n" if $debug{'parse'};
push @allfiles,"html/$1";
}
close IN;
# 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");
+ "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");
+my @pub_titles = ("publis.html", "publis__core.html", "publis__extern.html", "publis__intra.html");
sub handle_pub{
my $oldname = shift;
my $newname = $oldname;
print TO "$_";
last if (m|</div>|);
}
+
+ print TO "\n<!-- POST-PROCESSED TABS -->\n";
foreach (@tabs) {
# print "TAB: $_";
print TO "$_";
}
+ print TO "\n<!-- END OF POST-PROCESSED TABS -->\n";
+
+ if ($current->{'file'} =~ m/^class/) {
+ while (<FROM>) {
+ last if (m|</div>|);
+ }
+ print TO "$_";
+ }
while (<FROM>) {
+ if (m/POST-PROCESSED TABS/) {
+ while (<FROM>) {
+ last if (m/END OF POST-PROCESSED TABS/);
+ }
+ next;
+ }
+
+ if (m/The documentation for/) {
+ while (<FROM>) {
+ last if (m/<p>/);
+ }
+ }
print TO "$_";
}
close FROM;
}
if (m,<li><a href="(doc/)?annotated.html"><span>Data\ Structures</span></a></li>,) {
print TO ' <li'.($file =~ m,(doc/)?publis(_[^.]*)?.html, ? " class='current'" :"").'><a href="'.$1.'publis.html"><span>Publications</span></a></li>'."\n";
+ print TO ' <li'.($file =~ m,(doc/)?people.html, ? " class='current'" :"").'><a href="'.$1.'people.html"><span>People</span></a></li>'."\n";
print TO ' <li'.($file =~ m,(doc/)?history.html, ? " class='current'" :"").'><a href="'.$1.'history.html"><span>History</span></a></li>'."\n";
+ print TO ' <li'.($file =~ m,(doc/)?contrib.html, ? " class='current'" :"").'><a href="'.$1.'contrib.html"><span>Contrib</span></a></li>'."\n";
next;
}
s|<span>Modules</span>|<span>Modules API</span>|g;
-# s|<li><a href="(doc/)?dirs.html"><span>Directories</span></a></li>||g;
+ s|<span>Related Pages</span>|<span>Site Plan</span>|g;
print TO $_;
}