diff options
-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 |