diff --git a/bin/pandoc_fixer.pl b/bin/pandoc_fixer.pl index 1cd010fb7d4cc2b517a84f39ccc00b1b7c676699..82e95a0bf60136da4f802ff0ec0e5ae7bf5a3929 100755 --- a/bin/pandoc_fixer.pl +++ b/bin/pandoc_fixer.pl @@ -23,15 +23,17 @@ open INPUT, $input or die; my($input_path)=$input; $input_path =~ s|/[^/]*$||g; # print $input."\n\n"; + my($url_path) = "https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/blob/master/".$input_path; +my($gitlab_origin)= "https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/blob/master/"; while(defined($line=)) { - $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/) { - $line =~ s||Les sources de ce document sont disponibles sur gitlab.|g; + $line =~ s||Les sources de ce document sont disponibles sur gitlab.|g; } else { - $line =~ s||The source of this this document is available on gitlab.|g; + $line =~ s||The source of this this document is available on gitlab.|g; } $line =~ s|---

|
|g; $line =~ s|Date:.*Date: $gitdate