Skip to content

Commit

Permalink
reorder lectures and update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
geritwagner committed Apr 22, 2024
1 parent c4f910d commit d85a42b
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 257 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
78 changes: 17 additions & 61 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,74 +7,30 @@ LATEX_REF_DOC = --template /assets/basic.tex
PANDOC_CALL = docker run --rm \
--volume "`pwd`:/data" \
--volume "$(shell readlink -f ./assets)":/assets/ \
--user `id -u`:`id -g` \
--user $(shell id -u):$(shell id -g) \
pandoc/ubuntu-latex

run : slides
SLIDES_LIST := $(patsubst %.md,%,$(wildcard [0-9][0-9]*.md))

slides: output/00-orga.html output/01-drivers-of-change.html output/02-basics-of-individual-work.html output/03-personal-information-management.html output/04-excellence.html output/05-remote-teams.html output/06-communication.html output/07-collaborative-content-creation.html output/08-open-source.html output/09-platformization.html output/10-knowledge-intensive-services.html output/11-futures.html output/teaching_notes/11-futures-notes.html output/teaching_notes/12-ethics-notes.html output/12-ethics.html output/13-exam-prep.html output/teaching_notes/02_gtd.html
TEACHING_NOTES_LIST := $(patsubst teaching_notes/%.md,%,$(wildcard teaching_notes/[0-9][0-9]*.md))

output/00-orga.html: 00-orga.md assets/theme.css
docker run --rm --init -v "$(PWD)":/home/marp/app/ -e LANG=${LANG} -e MARP_USER="${UID}:${GID}" marpteam/marp-cli 00-orga.md --theme-set assets/theme.css --html --allow-local-files -o output/00-orga.html
# Define a rule to build all slides
slides: lecture_slides teaching_notes

output/01-drivers-of-change.html: 01-drivers-of-change.md assets/theme.css
docker run --rm --init -v "$(PWD)":/home/marp/app/ -e LANG=${LANG} -e MARP_USER="${UID}:${GID}" marpteam/marp-cli 01-drivers-of-change.md --theme-set assets/theme.css --html --allow-local-files -o output/01-drivers-of-change.html
lecture_slides: $(addprefix output/,$(addsuffix .html,$(SLIDES_LIST)))

output/02-basics-of-individual-work.html: 02-basics-of-individual-work.md assets/theme.css
docker run --rm --init -v "$(PWD)":/home/marp/app/ -e LANG=${LANG} -e MARP_USER="${UID}:${GID}" marpteam/marp-cli 02-basics-of-individual-work.md --theme-set assets/theme.css --html --allow-local-files -o output/02-basics-of-individual-work.html
# Define a rule to build all teaching notes
teaching_notes: $(addprefix output/teaching_notes/,$(addsuffix .html,$(TEACHING_NOTES_LIST)))

output/03-personal-information-management.html: 03-personal-information-management.md assets/theme.css
docker run --rm --init -v "$(PWD)":/home/marp/app/ -e LANG=${LANG} -e MARP_USER="${UID}:${GID}" marpteam/marp-cli 03-personal-information-management.md --theme-set assets/theme.css --html --allow-local-files -o output/03-personal-information-management.html
# Define a pattern rule for building a slide
output/%.html: %.md assets/theme.css
docker run --rm --init -v "$(PWD)":/home/marp/app/ -e LANG=${LANG} -e MARP_USER="${UID}:${GID}" marpteam/marp-cli $< --theme-set assets/theme.css --html --allow-local-files -o $@

output/04-excellence.html: 04-excellence.md assets/theme.css
docker run --rm --init -v "$(PWD)":/home/marp/app/ -e LANG=${LANG} -e MARP_USER="${UID}:${GID}" marpteam/marp-cli 04-excellence.md --theme-set assets/theme.css --html --allow-local-files -o output/04-excellence.html

output/05-remote-teams.html: 05-remote-teams.md assets/theme.css
docker run --rm --init -v "$(PWD)":/home/marp/app/ -e LANG=${LANG} -e MARP_USER="${UID}:${GID}" marpteam/marp-cli 05-remote-teams.md --theme-set assets/theme.css --html --allow-local-files -o output/05-remote-teams.html

output/06-communication.html: 06-communication.md assets/theme.css
docker run --rm --init -v "$(PWD)":/home/marp/app/ -e LANG=${LANG} -e MARP_USER="${UID}:${GID}" marpteam/marp-cli 06-communication.md --theme-set assets/theme.css --html --allow-local-files -o output/06-communication.html

output/07-collaborative-content-creation.html: 07-collaborative-content-creation.md assets/theme.css
docker run --rm --init -v "$(PWD)":/home/marp/app/ -e LANG=${LANG} -e MARP_USER="${UID}:${GID}" marpteam/marp-cli 07-collaborative-content-creation.md --theme-set assets/theme.css --html --allow-local-files -o output/07-collaborative-content-creation.html

output/08-open-source.html: 08-open-source.md assets/theme.css
docker run --rm --init -v "$(PWD)":/home/marp/app/ -e LANG=${LANG} -e MARP_USER="${UID}:${GID}" marpteam/marp-cli 08-open-source.md --theme-set assets/theme.css --html --allow-local-files -o output/08-open-source.html

output/09-platformization.html: 09-platformization.md assets/theme.css
docker run --rm --init -v "$(PWD)":/home/marp/app/ -e LANG=${LANG} -e MARP_USER="${UID}:${GID}" marpteam/marp-cli 09-platformization.md --theme-set assets/theme.css --html --allow-local-files -o output/09-platformization.html

output/10-knowledge-intensive-services.html: 10-knowledge-intensive-services.md assets/theme.css
docker run --rm --init -v "$(PWD)":/home/marp/app/ -e LANG=${LANG} -e MARP_USER="${UID}:${GID}" marpteam/marp-cli 10-knowledge-intensive-services.md --theme-set assets/theme.css --html --allow-local-files -o output/10-knowledge-intensive-services.html

output/11-futures.html: 11-futures.md assets/theme.css
docker run --rm --init -v "$(PWD)":/home/marp/app/ -e LANG=${LANG} -e MARP_USER="${UID}:${GID}" marpteam/marp-cli 11-futures.md --theme-set assets/theme.css --html --allow-local-files -o output/11-futures.html


output/12-ethics.html: 12-ethics.md assets/theme.css
docker run --rm --init -v "$(PWD)":/home/marp/app/ -e LANG=${LANG} -e MARP_USER="${UID}:${GID}" marpteam/marp-cli 12-ethics.md --theme-set assets/theme.css --html --allow-local-files -o output/12-ethics.html


output/13-exam-prep.html: 13-exam-prep.md assets/theme.css
docker run --rm --init -v "$(PWD)":/home/marp/app/ -e LANG=${LANG} -e MARP_USER="${UID}:${GID}" marpteam/marp-cli 13-exam-prep.md --theme-set assets/theme.css --html --allow-local-files -o output/13-exam-prep.html

output/teaching_notes/02_gtd.html: teaching_notes/02_gtd.md
$(PANDOC_CALL) \
teaching_notes/02_gtd.md \
--filter pandoc-crossref \
--citeproc \
--output output/teaching_notes/02_gtd.html

output/teaching_notes/11-futures-notes.html: teaching_notes/11-futures-notes.md assets/theme.css
$(PANDOC_CALL) \
teaching_notes/11-futures-notes.md \
--filter pandoc-crossref \
--citeproc \
--output output/teaching_notes/11-futures-notes.html

output/teaching_notes/12-ethics-notes.html: teaching_notes/12-ethics-notes.md assets/theme.css
# Define a pattern rule for building a teaching note
output/teaching_notes/%.html: teaching_notes/%.md assets/theme.css
$(PANDOC_CALL) \
teaching_notes/12-ethics-notes.md \
--filter pandoc-crossref \
--citeproc \
--output output/teaching_notes/12-ethics-notes.html
$< \
--filter pandoc-crossref \
--citeproc \
--output $@
6 changes: 3 additions & 3 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ permalink: /
| 04 | May 6 | [Excellence](output/04-excellence.html){: target="_blank"} | - |
| 05 | May 13 📋 | [Remote Teams](output/05-remote-teams.html){: target="_blank"} | - |
| 06 | May 20 | [Communication](output/06-communication.html){: target="_blank"} | - |
| 07 | May 27 🎙️ | [Collaborative Content Creation](output/07-collaborative-content-creation.html){: target="_blank"} | - |
| 08 | Jun. 3 📋 | [Open Source](output/08-open-source.html){: target="_blank"} | - |
| 09 | Jun. 10 | [Platformization](output/09-platformization.html){: target="_blank"} | - |
| 07 | May 27 🎙️ | [Platformization](output/07-platformization.html){: target="_blank"} | - |
| 08 | Jun. 3 📋 | [Collaborative Content Creation](output/08-collaborative-content-creation.html){: target="_blank"} | - |
| 09 | Jun. 10 | [Open Source](output/09-open-source.html){: target="_blank"} | - |
| 10 | Jun. 17 🎙️ | [Knowledge-Intensive Services](output/10-knowledge-intensive-services.html){: target="_blank"} | - |
| 11 | Jun. 24 📋 | [Futures](output/11-futures.html){: target="_blank"} | - |
| 12 | Jul. 1 | [Ethics](output/12-ethics.html){: target="_blank"} | - |
Expand Down
54 changes: 0 additions & 54 deletions output/11-futures-notes.html

This file was deleted.

139 changes: 0 additions & 139 deletions output/12-ethics-notes.html

This file was deleted.

0 comments on commit d85a42b

Please sign in to comment.