Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr-ressources
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Learning Lab
mooc-rr-ressources
Commits
bd4f8a6d
Commit
bd4f8a6d
authored
Mar 26, 2019
by
Arnaud Legrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[HTML] Automatically point to freshly built archives
parent
115b3267
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
pandoc_fixer.pl
bin/pandoc_fixer.pl
+3
-1
No files found.
bin/pandoc_fixer.pl
View file @
bd4f8a6d
...
@@ -33,6 +33,8 @@ $input_path =~ s|/[^/]*$||g;
...
@@ -33,6 +33,8 @@ $input_path =~ s|/[^/]*$||g;
my
(
$raw_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
(
$raw_path_percent
)
=
$raw_path
;
$raw_path_percent
=~
s/^http/%/g
;
my
(
$raw_path_percent
)
=
$raw_path
;
$raw_path_percent
=~
s/^http/%/g
;
my
(
$tree_path
)
=
"https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/tree/master/"
.
$input_path
;
my
(
$tree_path
)
=
"https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/tree/master/"
.
$input_path
;
my
(
$pages_path
)
=
"https://learninglab.gitlabpages.inria.fr/mooc-rr/mooc-rr-ressources/"
.
$input_path
;
my
(
$pages_path_percent
)
=
$pages_path
;
$pages_path_percent
=~
s/^http/%/g
;
my
(
$gitlab_origin
)
=
"https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/blob/master/"
;
my
(
$gitlab_origin
)
=
"https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/blob/master/"
;
########### Pandoc #################
########### Pandoc #################
...
@@ -71,7 +73,7 @@ while(defined(my $line=<INPUT>)) {
...
@@ -71,7 +73,7 @@ while(defined(my $line=<INPUT>)) {
$line =~ s|img src="
%|
img
src
=
"http|g;
$line =~ s|img src="
%|
img
src
=
"http|g;
$line =~ s|href="
http
|
href
=
"%|g;
$line =~ s|href="
http
|
href
=
"%|g;
$line =~ s|href="
([
^%
#][^"]*.tgz)"|href="$
raw_path_percent/$1"|g; # ?inline=false
$line =~ s|href="
([
^%
#][^"]*.tgz)"|href="$
pages_path_percent/$1"|g;
$line
=~
s
|
href
=
"([^%#][^"
]
*
)
"|href="
$tree_path
/
$1
"|g; # ?inline=false
$line
=~
s
|
href
=
"([^%#][^"
]
*
)
"|href="
$tree_path
/
$1
"|g; # ?inline=false
$line =~ s|href="
%|
href
=
"http|g;
$line =~ s|href="
%|
href
=
"http|g;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment