From 75791358e0b0fe8297f50f37a8a61fc5675be94b Mon Sep 17 00:00:00 2001 From: Arnaud Legrand Date: Mon, 25 Mar 2019 09:56:49 +0100 Subject: [PATCH] [HTML] Trying to fix paths to internal documents --- bin/pandoc_fixer.pl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/pandoc_fixer.pl b/bin/pandoc_fixer.pl index 1649973..65f05b3 100755 --- a/bin/pandoc_fixer.pl +++ b/bin/pandoc_fixer.pl @@ -30,7 +30,8 @@ my($output_temp) = $output."tmp"; my($input_path)=$input; $input_path =~ s|/[^/]*$||g; -my($url_path) = "https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/raw/master/".$input_path; +my($raw_path) = "https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/raw/master/".$input_path; +my($tree_path) = "https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/tree/master/".$input_path; my($gitlab_origin)= "https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/blob/master/"; ########### Pandoc ################# @@ -63,9 +64,13 @@ while(defined(my $line=)) { # $line =~ s|

TITLE:\(.*\)TITLE:$1