Skip to content

Commit 2569988

Browse files
committed
*: printable documents
I do not like having this build step of printable documentation depending on pulling a container, but the pandoc+latex combo is a big bundle. This is the minimal and cleanest approach for using these tools, for now. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
1 parent 8d66fdd commit 2569988

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Makefile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
DOCKER ?= $(shell which docker)
3+
DOC_FILES := \
4+
README.md \
5+
code-of-conduct.md \
6+
ROADMAP.md \
7+
implementations.md \
8+
bundle.md \
9+
runtime.md \
10+
runtime-linux.md \
11+
config.md \
12+
config-linux.md \
13+
runtime-config.md \
14+
runtime-config-linux.md
15+
16+
pdf:
17+
mkdir -p output/ && \
18+
$(DOCKER) run \
19+
-it \
20+
--rm \
21+
-v $(shell pwd)/:/input/:ro \
22+
-v $(shell pwd)/output/:/output/ \
23+
-u $(shell id -u) \
24+
vbatts/pandoc -f markdown_github -t latex -o /output/docs.pdf $(patsubst %,/input/%,$(DOC_FILES)) && \
25+
ls -lh output/docs.pdf
26+
27+
28+
clean:
29+
rm -rf output/ *~
30+

0 commit comments

Comments
 (0)