From 446459fb6272c74c3a24794608cdc3791fcf4377 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 29 Nov 2019 08:45:21 +0100 Subject: add darkmode --- etc/virtio-spec-documentroot.conf | 2 +- s2i/bin/assemble | 16 ++-------------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/etc/virtio-spec-documentroot.conf b/etc/virtio-spec-documentroot.conf index 9b11957..d1d1def 100644 --- a/etc/virtio-spec-documentroot.conf +++ b/etc/virtio-spec-documentroot.conf @@ -3,6 +3,6 @@ DocumentRoot /opt/app-root/src/output Options Indexes IndexOptions FancyIndexing NameWidth=* - IndexStyleSheet kraxel.css + IndexStyleSheet darkmode.css Require all granted diff --git a/s2i/bin/assemble b/s2i/bin/assemble index 48e6ffd..a7f4c55 100755 --- a/s2i/bin/assemble +++ b/s2i/bin/assemble @@ -36,20 +36,8 @@ cp -av virtio-spec/*.{html,css,pdf} virtio-spec/images output stylesheet=$(cd output; ls *.css) echo "---> CSS fixup ..." -cat < output/kraxel.css -body { - /* no extra long lines please */ - max-width: 100ch; - - /* center text */ - margin: 0px auto; - - /* beautify a bit */ - padding: 2ex 2em; - border: 2pt #ccc solid; -} -EOF -cat output/kraxel.css >> output/$stylesheet +cp /usr/libexec/s2i/darkmode.css output +/usr/libexec/s2i/better-css.sh output/*.css echo "---> add HEADER ..." cat < output/HEADER.html -- cgit