# GRAS tutorial
map {push @extra_files, "html/GRAS_tut_$_.html"} qw (intro
tour tour_install tour_setup tour_simpleexchange tour_args tour_callbacks tour_globals
- tour_logs tour_timers tour_exceptions tour_rpc);
+ tour_logs tour_timers tour_exceptions tour_simpledata tour_rpc tour_explicitwait
+ tour_message_recaping tour_staticstruct tour_pointers tour_dynar
+ tour_manualdatadef tour_exchangecb);
# GRAS examples
map {push @extra_files, "html/GRAS_ex_$_.html"} qw (ping mmrpc token timer);
close IN;
rename("html/modules.new.html","html/modules.html") unless $debug{'rename'};
-# 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");
-# force ordering
-my @pub_titles = ("publis.html", "publis_core.html", "publis_extern.html", "publis_intra.html");
-sub handle_pub{
- my $oldname = shift;
- my $newname = $oldname;
- $newname =~ s/\.html$/.new.html/;
-
-# print "Handle_pub($oldname -> $newname)\n";
-
- open IN,"html/$oldname" || die "Cannot open $oldname";
- open OUT,">html/$newname" || die "Cannot open $newname";
- my $line;
- while ($line = <IN>) {
- last if $line =~ /<h1>/;
- print OUT $line;
- }
-
- print OUT "<div class=\"tabs\">\n<ul class=\"tablist\">\n";
- foreach my $page (@pub_titles) {
- print OUT " <li".($page eq $oldname? " class=\"current\"":"" )."> <a href=\"$page\"><span>".($pub_tabs{$page})."</span></a></li>\n";
- }
-
- print OUT " </ul></div>\n";
- print OUT $line;
- while ($line = <IN>) {
- print OUT $line;
- }
- close OUT;
- close IN;
- rename("html/$newname","html/$oldname") unless $debug{'rename'};
-}
-map {handle_pub($_)} @pub_titles;
-
-
# Operate the recursion
sub handle_page {
my $current=shift;
|| $file =~ /^html\/modules.*/
|| $file =~ /^html\/annotated.*/
|| $file =~ /^html\/group__.*/
- || $file =~ /^html\/functions.*/)
+ || $file =~ /^html\/functions.*/
+ || $file =~ /^html\/GRAS_tut_tour_.*/)
{
$tmp_buff .= ' <div class="tabs_group_use">'."\n";
$tmp_buff .= ' <ul class="tablist">'."\n";
- $tmp_buff .= ' <li><a href="install.html"><span>Install SimGrid</span></a></li>'."\n";
+ $tmp_buff .= ' <li><a href="install.html"><span>Installing SimGrid</span></a></li>'."\n";
$tmp_buff .= ' <li><a href="modules.html"><span>Modules API</span></a></li>'."\n";
- $tmp_buff .= ' <li><a href="annotated.html"><span>Data 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="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="pls.html"><span>Packet level simulation</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";
$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__.*/)
+ if($file =~ /^html\/group__.*/
+ || $file =~ /^html\/GRAS_tut_tour_.*/)
{
$tmp_buff =~ s/<li><a href="modules.html">/<li class="current"><a href="modules.html">/g;
}
$tmp_buff =~ s/<li><a href="annotated.html">/<li class="current"><a href="annotated.html">/g;
}
-
print TO $tmp_buff;
next;
}