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
b423f394
Commit
b423f394
authored
Mar 21, 2019
by
Arnaud Legrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics
parent
b9cbb5f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
pandoc_fixer.pl
bin/pandoc_fixer.pl
+5
-3
No files found.
bin/pandoc_fixer.pl
View file @
b423f394
...
@@ -23,15 +23,17 @@ open INPUT, $input or die;
...
@@ -23,15 +23,17 @@ open INPUT, $input or die;
my
(
$input_path
)
=
$input
;
my
(
$input_path
)
=
$input
;
$input_path
=~
s
|
/[^/
]
*
$|
|
g
;
$input_path
=~
s
|
/[^/
]
*
$|
|
g
;
# print $input."\n\n";
# print $input."\n\n";
my
(
$url_path
)
=
"https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/blob/master/"
.
$input_path
;
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
=<
INPUT
>
))
{
while
(
defined
(
$line
=<
INPUT
>
))
{
$line
=~
s
|
https:
//gi
tlab
.
inria
.
fr
/learninglab/
|
https:
//l
earninglab
.
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
(
$input
=~
/_fr.html/
)
{
$line
=~
s
|<
body
>|<
body
>
Les
<
a
href
=
'
https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/blob/master
/$input'
>
sources
de
ce
document
sont
disponibles
sur
gitlab
</
a
>.|
g
;
$line
=~
s
|<
body
>|<
body
>
Les
<
a
href
=
'
$gitlab_origin
/$input'
>
sources
de
ce
document
sont
disponibles
sur
gitlab
</
a
>.|
g
;
}
else
{
}
else
{
$line
=~
s
|<
body
>|<
body
>
The
<
a
href
=
'
https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/blob/master
/$input'
>
source
of
this
this
document
is
available
on
gitlab
</
a
>.|
g
;
$line
=~
s
|<
body
>|<
body
>
The
<
a
href
=
'
$gitlab_origin
/$input'
>
source
of
this
this
document
is
available
on
gitlab
</
a
>.|
g
;
}
}
$line
=~
s
|---<
/p>|<hr/
>|
g
;
$line
=~
s
|---<
/p>|<hr/
>|
g
;
$line
=~
s
|
Date:
.*<
br
|<
i
>
Date:
$gitdate
</
i
><
br
|
g
;
$line
=~
s
|
Date:
.*<
br
|<
i
>
Date:
$gitdate
</
i
><
br
|
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