From be73ad4ac5b9e34d7736b6744d965134afff95d8 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Tue, 1 Jun 2021 05:06:00 +0000 Subject: Dockerize docbook stuff. --- Dockerfile | 6 ++++++ Makefile | 5 +++++ src/pretty.css | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Dockerfile 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; -- cgit v1.2.3-60-g2f50