aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-11-25 13:24:23 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-11-25 13:24:23 +0100
commita1e67ddd7da51b9fa0e92b7a45b4fe081f6b66fd (patch)
treebda6243874d07c3f755e9ccff95f655e0d1f77bd
parent00d3c34fd6405aa4ed8b38ab05084abbd693964c (diff)
downloads2i-virtio-spec-a1e67ddd7da51b9fa0e92b7a45b4fe081f6b66fd.tar.gz
stylesheet quirks
-rw-r--r--etc/virtio-spec-documentroot.conf1
-rwxr-xr-xs2i/bin/assemble8
2 files changed, 7 insertions, 2 deletions
diff --git a/etc/virtio-spec-documentroot.conf b/etc/virtio-spec-documentroot.conf
index 77b7a82..c05446d 100644
--- a/etc/virtio-spec-documentroot.conf
+++ b/etc/virtio-spec-documentroot.conf
@@ -3,5 +3,6 @@ DocumentRoot /opt/app-root/src/output
<Directory "/opt/app-root/src/output">
Options Indexes
IndexOptions FancyIndexing DescriptionWidth=*
+ IndexStyleSheet kraxel.css
Require all granted
</Directory>
diff --git a/s2i/bin/assemble b/s2i/bin/assemble
index 13fd195..18ee439 100755
--- a/s2i/bin/assemble
+++ b/s2i/bin/assemble
@@ -31,6 +31,10 @@ cp -av virtio-spec/*.{html,css,pdf} virtio-spec/images output
echo "---> CSS fixup ..."
cat <<EOF >> output/*.css
+@import url(kraxel.css);
+EOF
+
+cat <<EOF >> output/kraxel.css
body {
/* no extra long lines please */
max-width: 100ch;
@@ -44,7 +48,7 @@ body {
}
EOF
-echo "---> add README ..."
+echo "---> add HEADER ..."
cat <<EOF >> output/HEADER.html
<h1>virtio specification</h1>
<p>
@@ -57,7 +61,7 @@ cat <<EOF >> output/HEADER.html
<li><a href="$(cd output; ls *.pdf)">print version (pdf)</a>.
</ul>
<hr>
-<h3>directory index</h3>
+<h3>Directory index</h3>
EOF
echo "---> Fix permissions ..."