From 10b619d866b5fde6396581ee464f3470918194a7 Mon Sep 17 00:00:00 2001 From: Nicolas Lenz <nicolas@eisfunke.com> Date: Fri, 8 Jul 2022 11:08:48 +0200 Subject: [PATCH] Update for new template --- .gitlab-ci.yml | 25 +++----------------- makefile | 17 -------------- metadata.yaml | 5 ++++ src/00-introduction.md | 8 ------- theme.tex | 52 ------------------------------------------ 5 files changed, 8 insertions(+), 99 deletions(-) delete mode 100644 makefile create mode 100644 metadata.yaml delete mode 100644 theme.tex diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 919cbe3..55d2f6e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,22 +1,3 @@ -image: registry.eisfunke.com/software/container/pandoc-plus:latest - -build: - stage: build - script: - - make slides.pdf - - make slides.tex - artifacts: - paths: - - slides.pdf - - slides.tex - -pages: - stage: deploy - script: - - mkdir public - - mv slides.pdf public - artifacts: - paths: - - public - only: - - master +include: + - remote: https://git.eisfunke.com/document/pandoc-template/slides/-/raw/main/build.gitlab-ci.yml + - remote: https://git.eisfunke.com/document/pandoc-template/slides/-/raw/main/pages.gitlab-ci.yml diff --git a/makefile b/makefile deleted file mode 100644 index 836c502..0000000 --- a/makefile +++ /dev/null @@ -1,17 +0,0 @@ -inputs = $(shell ls src/*.md) # $(wildcard src/*.md) outputs in the wrong order -pandoc = pandoc $(inputs) -f markdown -t beamer \ ---slide-level 2 -V theme:metropolis -H theme.tex - -slides.pdf: $(inputs) res/* theme.tex - $(pandoc) --pdf-engine=xelatex -o $@ - -slides.tex: $(inputs) theme.tex - $(pandoc) -o $@ - -slides.html: $(inputs) theme.tex - pandoc $(inputs) -f markdown -t revealjs -s --slide-level 2 -o $@ - -clean: - rm -f slides.pdf slides.tex - -.PHONY: clean diff --git a/metadata.yaml b/metadata.yaml new file mode 100644 index 0000000..71c6332 --- /dev/null +++ b/metadata.yaml @@ -0,0 +1,5 @@ +title: Functional Programming +subtitle: An introductory Workshop +author: Nicolas Lenz +institute: "[eisfunke.com](https://www.eisfunke.com)" +logo: res/logo-haskell.png diff --git a/src/00-introduction.md b/src/00-introduction.md index 05b6b2e..9f0d505 100644 --- a/src/00-introduction.md +++ b/src/00-introduction.md @@ -1,11 +1,3 @@ ---- -title: Functional Programming -subtitle: An introductory Workshop -author: Nicolas Lenz -institute: "[eisfunke.com](https://www.eisfunke.com)" -titlegraphic: res/logo-haskell.png ---- - # Introduction ## Me diff --git a/theme.tex b/theme.tex deleted file mode 100644 index 100b722..0000000 --- a/theme.tex +++ /dev/null @@ -1,52 +0,0 @@ -\definecolor{primary-medium}{HTML}{F19204} -\definecolor{accent-bright}{HTML}{F07D8F} -\definecolor{accent-light}{HTML}{EB4F67} -\definecolor{accent-medium}{HTML}{E41131} -\definecolor{accent-dim}{HTML}{A90D24} -\definecolor{background-very-dark}{HTML}{232124} -\definecolor{background-dark}{HTML}{3F3C41} -\definecolor{background-super-bright}{HTML}{F8F7F8} - -\metroset{sectionpage=progressbar, progressbar=frametitle, titleformat=smallcaps, background=light} - -\setbeamercolor{normal text}{fg=black} -\setbeamercolor{background canvas}{fg=background-dark, bg=background-super-bright} -\setbeamercolor*{palette primary}{fg=white,bg=primary-medium} -\setbeamercolor*{progress bar}{fg=accent-dim, bg=accent-bright} - -\setlength{\leftmargini}{1em} - -\usepackage{sourcesanspro} -\usepackage{sourcecodepro} - -\usepackage{polyglossia} - \setdefaultlanguage[variant=american]{english} -\usepackage{listings} - - - -\usepackage{mathtools, amssymb, stmaryrd, unicode-math} -\usepackage{xspace} - -\usepackage{fvextra} -\usepackage{color} -\usepackage{fancyvrb} -% \renewcommand{\VERB}{\Verb[commandchars=\\\{\}]} -\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\},breaklines,fontsize=\small} -\DefineVerbatimEnvironment{verbatim}{Verbatim}{commandchars=\\\{\},breaklines,fontsize=\small} - -% \input{macros.tex} - -\lstnewenvironment{algorithm}{ - \lstset{ - mathescape=true, - escapeinside={(*}{*)}, - keepspaces=true, - numbers=left, - numberstyle=\tiny, - columns=fullflexible, - keywordstyle=\bfseries, - keywords={repeat, until, for, all, each, in, return, function, if, else, or, and, empty}, - numbers=left - } -}{} -- GitLab