summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2021-06-01 05:06:00 +0000
committerZach van Rijn <me@zv.io>2021-06-01 05:06:00 +0000
commitbe73ad4ac5b9e34d7736b6744d965134afff95d8 (patch)
tree17aa5b486117ea770440a68bc1be33e74b8f42ca
parent9da984f5c8aaeca798a64c0bb15a2f99988d4fa8 (diff)
downloaddocs-be73ad4ac5b9e34d7736b6744d965134afff95d8.tar.gz
docs-be73ad4ac5b9e34d7736b6744d965134afff95d8.tar.bz2
docs-be73ad4ac5b9e34d7736b6744d965134afff95d8.tar.xz
docs-be73ad4ac5b9e34d7736b6744d965134afff95d8.zip
Dockerize docbook stuff.
-rw-r--r--Dockerfile6
-rw-r--r--Makefile5
-rw-r--r--src/pretty.css2
3 files changed, 12 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..8374769
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,6 @@
+FROM alpine:3.13
+
+RUN apk update && apk upgrade && apk add \
+lynx \
+make \
+xmlto
diff --git a/Makefile b/Makefile
index 7aef63d..1ae52ae 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,11 @@ all: out/html/devel/index.html out/text/develbook.txt \
out/html/admin/index.html out/text/adminbook.txt \
out/html/hcl/index.html out/text/hclbook.txt
+image:
+ docker build . -t cookbook
+site:
+ docker run -u$(shell id -u):$(shell id -g) -v$(CURDIR):/tmp -w /tmp --rm -it cookbook make
+
out/text/adminbook.txt: src/admin/*.xml
@mkdir -p out/text
@printf 'Administrator Handbook: Generating text...\n'
diff --git a/src/pretty.css b/src/pretty.css
index f05593d..69e57e7 100644
--- a/src/pretty.css
+++ b/src/pretty.css
@@ -1,4 +1,4 @@
-@import url("https://www.adelielinux.org/font/font-amal.css");
+@import url("https://oldwww.adelielinux.org/font/font-amal.css");
html {
background: #eee;