diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-11-22 18:09:07 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-11-22 18:09:07 +0100 |
commit | 527b6c4e1ad72913d5ad9fa0e38ff4c8c42a7f9d (patch) | |
tree | c65bd224b204affb3586d95fff3638919c154cc0 | |
parent | db6e4edfce42c5ab8f6cdd86dff7d5fc790e2dd5 (diff) | |
download | s2i-virtio-spec-527b6c4e1ad72913d5ad9fa0e38ff4c8c42a7f9d.tar.gz |
css tweak, readme
-rwxr-xr-x | s2i/bin/assemble | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/s2i/bin/assemble b/s2i/bin/assemble index 6db4f0e..7463215 100755 --- a/s2i/bin/assemble +++ b/s2i/bin/assemble @@ -25,9 +25,29 @@ mv /tmp/src ./virtio-spec echo "---> Building virtio spec ..." (cd virtio-spec; sh makeall.sh) -echo "---> Move docs output and cleanup ..." +echo "---> Move docs output ..." mkdir output -cp -v virtio-spec/*.{html,css,pdf} output +cp -av virtio-spec/*.{html,css,pdf} virtio-spec/images output + +echo "---> CSS fixup ..." +cat <<EOF >> output/*.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 + +echo "---> add README ..." +cat <<EOF >> output/README.html +<h1>virtio specification</h1> +EOF echo "---> Fix permissions ..." chmod +x . output |