From: Petter Reinholdtsen Date: Mon, 26 Oct 2020 21:06:09 +0000 (+0100) Subject: Add build rules for HTML editions. X-Git-Tag: nb-printed-2020-11-13~45 X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/commitdiff_plain/f7c199e371016af746705c236a6ddb07822e7a77 Add build rules for HTML editions. --- 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