Skip to content
Snippets Groups Projects

Feature/ci slides setup

Merged Dennis Gläser requested to merge feature/ci-slides-setup into master
1 file
+ 16
1
Compare changes
  • Side-by-side
  • Inline
+ 16
1
@@ -5,6 +5,8 @@ stages:
variables:
IMAGE_REGISTRY_URL: $CI_REGISTRY/dumux-repositories/dumux-docker-ci
DUMUX_CI_DUNE_LATEST_RELEASE: "2.9"
REVEAL_THEME: "serif"
PANDOC_VERSION: 3.1.2
# rules for the default triggers:
# - pipelines are triggered for merge requests and external triggers (e.g. nightly build in dumux)
@@ -36,7 +38,20 @@ pages:
image: alpine:latest
stage: deploy
script:
- echo 'Nothing to do...'
- wget https://github.com/jgm/pandoc/releases/download/$PANDOC_VERSION/pandoc-$PANDOC_VERSION-linux-amd64.tar.gz -O pandoc.tar.gz
- tar -xvf pandoc.tar.gz
- export PATH=$PATH:$(pwd)/pandoc-$PANDOC_VERSION/bin
- |
mkdir build && cd build
for MDFILE in ../slides/*.md; do
TARGET=${MDFILE/.md/.html}
pandoc -t revealjs -s --mathjax -o ${TARGET} ../slides/${MDFILE} \
-V revealjs-url=https://unpkg.com/reveal.js/ \
-V theme=${REVEAL_THEME} \
--include-in-header=../slides/dumux_course.css
done
cd ..
- mkdir public && mv build/* public
artifacts:
paths:
- public
Loading