From 463e642e00e39d7d5c9bfa5ddd3f54cb408fbfee Mon Sep 17 00:00:00 2001 From: Jeremy Kidwell Date: Thu, 6 Sep 2018 10:51:15 +0100 Subject: [PATCH] updates --- .gitignore | 1 + Makefile | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a5baeac --- /dev/null +++ b/Makefile @@ -0,0 +1,39 @@ +### Build and deploy a presentation +### Bits here stolen from Kieran Healy (https://github.com/kjhealy/kieranhealy.hugo/blob/master/Makefile) +### and Matthew Brett (https://github.com/matthew-brett/thw-intro/blob/master/Makefile) +### If you want to use this file as-is, then you +### need to change the variables below to your +### own SSH user, document root, etc. +### +### However, you will most likely also want to +### customize the various steps (e.g. the css target) +### so that it matches the details of your own +### setup. +### +### Apart from hugo, you will also need rsync to deploy +### the site, and the java-based yuicompressor to +### minify the CSS, should you keep that step. + +SSH_USER = jeremyki@jeremykidwell.info +DOCUMENT_ROOT = /home/jeremyki/public_html/ +STATIC_FILES_DIR = files/presentations/ +FILENAME = presentation_20180130_cambridge_energy + +default: $(PUBLIC_DIR).pdf + +reveal: $(PUBLIC_DIR).html + +%.pdf : %.md + pandoc -t beamer -s $< -o $@ + +%.html : %.md + # May need git submodule add https://github.com/hakimel/reveal.js to make + # this one work. + pandoc -t revealjs -s -o $@ $< -V revealjs-url=./reveal.js + +### for later +### rsync: +### rsync -crzve 'ssh -p 22' $(PUBLIC_DIR) $(SSH_USER):$(DOCUMENT_ROOT) + +clean: +rm *.pdf *.html \ No newline at end of file