From f7c199e371016af746705c236a6ddb07822e7a77 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Mon, 26 Oct 2020 22:06:09 +0100 Subject: [PATCH] Add build rules for HTML editions. --- .gitlab-ci.yml | 14 ++++++++++++++ Makefile | 10 +++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..ef2f916 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,14 @@ +# Try to make files available from +# https://pin-no.gitlab.io/how-to-destroy-surveillance-capitalism/ +# Based on https://gitlab.com/pages/plain-html + +image: alpine:latest +pages: + stage: deploy + script: + - echo 'Nothing to do...' + artifacts: + paths: + - public + only: + - master diff --git a/Makefile b/Makefile index c81b333..f3e5ee1 100644 --- a/Makefile +++ b/Makefile @@ -160,6 +160,14 @@ epub: $(SOURCE).epub %.epub: %.xml dbtoepub $^ +html: $(SOURCE).html + for LANG in $(LANGS); do \ + $(MAKE) $(SOURCE).$$LANG.html ; \ + done + +%.html: %.xml + xmlto -m extra/pdf.xsl html-nochunks $^ + # Useful for spell checking the text %.txt: %.xml xmlto txt $< @@ -188,4 +196,4 @@ status: printf "$$LANG "; msgfmt -o /dev/null --statistics po/$$LANG/mwcc.po; \ done -.SUFFIXES: .xml .md +.SUFFIXES: .html .xml .md -- 2.47.2