Compare commits
2 Commits
d7c3c0be63
...
24aade56fc
| Author | SHA1 | Date | |
|---|---|---|---|
| 24aade56fc | |||
| 5e746cf261 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
buch.pdf
|
buch.pdf
|
||||||
|
buch.epub
|
||||||
|
|||||||
25
Makefile
Normal file
25
Makefile
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
TITLE := KI Story
|
||||||
|
AUTHOR := Stefan Mühlinghaus
|
||||||
|
DOCKER_CMD := docker run --rm -v "$(shell pwd):/data" --user $(shell id -u):$(shell id -g) fpod/pandoc-weasyprint
|
||||||
|
|
||||||
|
.PHONY: all pdf epub clean
|
||||||
|
|
||||||
|
all: pdf epub
|
||||||
|
|
||||||
|
pdf:
|
||||||
|
$(DOCKER_CMD) akt*/*.md \
|
||||||
|
--metadata title="$(TITLE)" \
|
||||||
|
--metadata author="$(AUTHOR)" \
|
||||||
|
--pdf-engine=weasyprint \
|
||||||
|
--css=style.css \
|
||||||
|
-o buch.pdf
|
||||||
|
|
||||||
|
epub:
|
||||||
|
$(DOCKER_CMD) akt*/*.md \
|
||||||
|
--metadata title="$(TITLE)" \
|
||||||
|
--metadata author="$(AUTHOR)" \
|
||||||
|
--css=style.css \
|
||||||
|
-o buch.epub
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f buch.pdf buch.epub
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
docker run --rm -v "$(pwd):/data" --user $(id -u):$(id -g) \
|
|
||||||
fpod/pandoc-weasyprint \
|
|
||||||
akt*/*.md \
|
|
||||||
--pdf-engine=weasyprint \
|
|
||||||
--css=/data/style.css \
|
|
||||||
-o /data/buch.pdf
|
|
||||||
Reference in New Issue
Block a user