diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-11-30 14:19:59 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-11-30 14:19:59 -0800 |
commit | 2564eb6f556e50a53277080fd95017dda713053c (patch) | |
tree | 4c5bce088ca7dbe8307197c53ac2263a024b58a0 | |
parent | f52bc40d6f166e962e8de9d3fec89a9f87c47d91 (diff) | |
download | mu-2564eb6f556e50a53277080fd95017dda713053c.tar.gz |
4804
-rwxr-xr-x | update_html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/update_html b/update_html index a1a04a17..67ec92d8 100755 --- a/update_html +++ b/update_html @@ -18,24 +18,24 @@ convert_html() { sed -i 's,<title>.*/mu/,<title>Mu - ,' $1.html sed -i 's,\.html</title>,</title>,' $1.html - sed -i 's/^\* { \(.*\) }/* { font-size: 12pt; \1 }/g' $1.html - sed -i 's/^body { \(.*\) }/body { font-size: 12pt; \1 }/g' $1.html + sed -i 's/^\* { \(.*\) }/* { font-size:12pt; \1 }/g' $1.html + sed -i 's/^body { \(.*\) }/body { font-size:12pt; \1 }/g' $1.html # turn most code grey sed -i 's/#eeeeee/#aaaaaa/g' $1.html # ..so that we can use white for cross-links (underlining only on hover) - sed -i '/^body {/ a a:hover { text-decoration: underline; }' $1.html - sed -i '/^body {/ a a { color:#eeeeee; text-decoration: none; }' $1.html + sed -i '/^body {/ a a:hover { text-decoration:underline; }' $1.html + sed -i '/^body {/ a a { color:#eeeeee; text-decoration:none; }' $1.html # line numbers are darker still - sed -i 's/^\.LineNr .*/.LineNr { color: #444444; }/' $1.html # line numbers + sed -i 's/^\.LineNr .*/.LineNr { color:#444444; }/' $1.html # line numbers # tweak contrast for remaining colors - sed -i 's/^\.Constant .*/.Constant { color: #00a0a0; }/' $1.html - sed -i 's/^\.muControl .*/.muControl { color: #c0a020; }/' $1.html + sed -i 's/^\.Constant .*/.Constant { color:#00a0a0; }/' $1.html + sed -i 's/^\.muControl .*/.muControl { color:#c0a020; }/' $1.html # real links in comments continue to be the usual blue - sed -i 's/^\.Comment .*/.Comment { color: #9090ff; }\n.Comment a { color:#0000ee; text-decoration:underline; }/' $1.html - sed -i 's/^\.Delimiter .*/.Delimiter { color: #800080; }/' $1.html # not meant to be read; can be lower-contrast - sed -i 's/^\.PreProc .*/.PreProc { color: #800080; }/' $1.html # not meant to be read; can be lower-contrast - sed -i 's/^\.Identifier .*/.Identifier { color: #c0a020; }/' $1.html # same as muControl - sed -i 's/^\.Special .*/.Special { color: #c00000; }/' $1.html # same as traceAbsent.. + sed -i 's/^\.Comment .*/.Comment { color:#9090ff; }\n.Comment a { color:#0000ee; text-decoration:underline; }/' $1.html + sed -i 's/^\.Delimiter .*/.Delimiter { color:#800080; }/' $1.html # not meant to be read; can be lower-contrast + sed -i 's/^\.PreProc .*/.PreProc { color:#800080; }/' $1.html # not meant to be read; can be lower-contrast + sed -i 's/^\.Identifier .*/.Identifier { color:#c0a020; }/' $1.html # same as muControl + sed -i 's/^\.Special .*/.Special { color:#c00000; }/' $1.html # same as traceAbsent.. # switch unicode characters around in the rendered html # the ones we have in the source files render double-wide in html |