From 3a16c88deeef0dae4a29efde431491dca987327a Mon Sep 17 00:00:00 2001 From: ROSPARS Benoit Date: Tue, 19 Mar 2019 18:41:35 +0100 Subject: [PATCH] Create index --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 01e1c83..6f5b1b4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,7 @@ pages: - pandoc --help # - pandoc --list-input-formats # Broken as pandoc dates from 2013 on this image! :( - for file in $(find -name "*.md"); do - pandoc -s -f markdown_github -t html -o ${file%.*}.html $file && echo "Exported ${file%.*}.html" || echo "ERROR $file"; + pandoc -s -f markdown_github -t html -o ${file%.*}.html $file && echo "Exported ${file%.*}.html" && echo "
  • ${file%.*}.html
  • " >> index.html || echo "ERROR $file"; sed -i 's|https://gitlab.inria.fr/learninglab/|https://learninglab.gitlabpages.inria.fr/|g' ${file%.*}.html; sed -i "s||The original version of this document is available on gitlab.|g" ${file%.*}.html; sed -i "s|\-\-\-

    |
    |g" ${file%.*}.html; -- 2.18.1