]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Add build rules for HTML editions.
authorPetter Reinholdtsen <pere@hungry.com>
Mon, 26 Oct 2020 21:06:09 +0000 (22:06 +0100)
committerPetter Reinholdtsen <pere@hungry.com>
Mon, 26 Oct 2020 21:06:09 +0000 (22:06 +0100)
.gitlab-ci.yml [new file with mode: 0644]
Makefile

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644 (file)
index 0000000..ef2f916
--- /dev/null
@@ -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
index c81b33337bbc7dd04ee76d5261097c540e6d4aec..f3e5ee1962a70b486b85e9a91b805881bb45364f 100644 (file)
--- 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