aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-11-22 18:09:07 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-11-22 18:09:07 +0100
commit527b6c4e1ad72913d5ad9fa0e38ff4c8c42a7f9d (patch)
treec65bd224b204affb3586d95fff3638919c154cc0
parentdb6e4edfce42c5ab8f6cdd86dff7d5fc790e2dd5 (diff)
downloads2i-virtio-spec-527b6c4e1ad72913d5ad9fa0e38ff4c8c42a7f9d.tar.gz
css tweak, readme
-rwxr-xr-xs2i/bin/assemble24
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