diff options
author | Maria Matejka <mq@ucw.cz> | 2021-03-04 20:11:26 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2021-12-08 12:39:28 +0100 |
commit | f459deee9f494ae8f741cc3b04e0e0db94a77c53 (patch) | |
tree | 0770c181ad614d401b8145ac77104327af17bb2b /doc/threads/Makefile | |
parent | 493d45d95076ea1f375346942a1ce4e21dcc55e6 (diff) |
Thread documentation: chapters 0, 1 and 2
Diffstat (limited to 'doc/threads/Makefile')
-rw-r--r-- | doc/threads/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/threads/Makefile b/doc/threads/Makefile new file mode 100644 index 00000000..f5198be7 --- /dev/null +++ b/doc/threads/Makefile @@ -0,0 +1,15 @@ +SUFFICES := .pdf -wordpress.html +CHAPTERS := 00_the_name_of_the_game 01_the_route_and_its_attributes 02_asynchronous_export + +all: $(foreach ch,$(CHAPTERS),$(addprefix $(ch),$(SUFFICES))) + +00_the_name_of_the_game.pdf: 00_filter_structure.png + +%.pdf: %.md + pandoc -f markdown -t latex -o $@ $< + +%.html: %.md + pandoc -f markdown -t html5 -o $@ $< + +%-wordpress.html: %.html Makefile + sed -r 's#</p>#\n#g; s#<p>##g; s#<(/?)code>#<\1tt>#g; s#<pre><tt>#<code>#g; s#</tt></pre>#</code>#g; s#</?figure>##g; s#<figcaption>#<p style="text-align: center">#; s#</figcaption>#</p>#; ' $< > $@ |