diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-11-29 08:45:21 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-11-29 08:45:21 +0100 |
commit | 446459fb6272c74c3a24794608cdc3791fcf4377 (patch) | |
tree | d13ce9fb0e65d67bf84af5e40e2fa8fb13a9daa5 | |
parent | 6f55814b0669585038478dd9bf54f108ea9d354b (diff) | |
download | s2i-virtio-spec-446459fb6272c74c3a24794608cdc3791fcf4377.tar.gz |
add darkmode
-rw-r--r-- | etc/virtio-spec-documentroot.conf | 2 | ||||
-rwxr-xr-x | 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 <Directory "/opt/app-root/src/output"> Options Indexes IndexOptions FancyIndexing NameWidth=* - IndexStyleSheet kraxel.css + IndexStyleSheet darkmode.css Require all granted </Directory> 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 <<EOF > 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 <<EOF > output/HEADER.html |