Commit 24c0a06b authored by Arnaud Legrand's avatar Arnaud Legrand

[HTML rendering] Stupid me!

parent 64381acf
...@@ -47,12 +47,14 @@ while(defined(my $line=<INPUT>)) { ...@@ -47,12 +47,14 @@ while(defined(my $line=<INPUT>)) {
if($line =~ /<h1 class="title"/) { next; } if($line =~ /<h1 class="title"/) { next; }
if($line =~ /<h1 class="date"/) { next; } if($line =~ /<h1 class="date"/) { next; }
# $line =~ s|https://gitlab.inria.fr/learninglab/|https://learninglab.gitlabpages.inria.fr/|g; ## Not such a good idea! # $line =~ s|https://gitlab.inria.fr/learninglab/|https://learninglab.gitlabpages.inria.fr/|g; ## Not such a good idea!
if($input=~ /_fr.html/) { if($line =~ /<body>/) {
$line =~ s|<body>|<body>Les <a href='$gitlab_origin/$input'>sources de ce document sont disponibles sur gitlab</a>.|g; if($input=~ /_fr.html/) {
$line .= "<br><i>Version du $gitdate.</i><br><hr/>\n" $line =~ s|<body>|<body>Les <a href='$gitlab_origin/$input'>sources de ce document sont disponibles sur gitlab</a>.|g;
} else { $line .= "<br><i>Version du $gitdate.</i><br><hr/>\n"
$line =~ s|<body>|<body>The <a href='$gitlab_origin/$input'>source of this this document is available on gitlab</a>.|g; } else {
$line .= "<br><i>Last version: $gitdate</i><br><hr/>\n" $line =~ s|<body>|<body>The <a href='$gitlab_origin/$input'>source of this this document is available on gitlab</a>.|g;
$line .= "<br><i>Last version: $gitdate</i><br><hr/>\n"
}
} }
$line =~ s|<span class="smallcaps">TOC</span>||g; $line =~ s|<span class="smallcaps">TOC</span>||g;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment