image: pandoc/core pages: stage: deploy script: - pandoc --version - 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 "
  • ${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; sed -i "s|

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