summary refs log tree commit diff
path: root/bin/html.sh
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-07-25 23:16:51 -0400
committerJune McEnroe <june@causal.agency>2019-07-25 23:16:51 -0400
commit4b7d5161a30645b0a23691687ef1aafdda62d3bb (patch)
tree4f7fb1abe4e3a06d0a67a1af46d568677902e7e0 /bin/html.sh
parentDon't match comments in strings in make (diff)
downloadsrc-4b7d5161a30645b0a23691687ef1aafdda62d3bb.tar.gz
src-4b7d5161a30645b0a23691687ef1aafdda62d3bb.zip
Use scheme to style HTMLs
Diffstat (limited to 'bin/html.sh')
-rw-r--r--bin/html.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/html.sh b/bin/html.sh
index cb7f1a66..8f4e3887 100644
--- a/bin/html.sh
+++ b/bin/html.sh
@@ -6,8 +6,11 @@ readonly GiteaURL='https://code.causal.agency/june/src/src/branch/master/bin'
 src=$1
 man=${2:-}
 
-./hi -f html -o document,tab=4 -n "${src}" /dev/null | sed '/<pre/d'
+./hi -f html -o document,tab=4 -n "${src}" /dev/null | sed -e '/<pre/d'
 cat <<- EOF
+	<style>
+	$(./scheme -s | sed -f style.sed)
+	</style>
 	<code><a href="${GiteaURL}/${src}">${src} in git</a></code>
 EOF
 [ -f "${man}" ] && man -P cat "${PWD}/${man}" | ./ttpre