From a9ffb4cbf972c13684d1d792d12bdb01d60edb4c Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sun, 7 Feb 2021 17:24:37 -0500 Subject: [PATCH] make: Strip "Misc Info Manual" tag from built HTML Both in the generated HTML and the atom.xml, this takes up precious space, especially on mobile. --- Makefile | 1 + genatom.sh | 3 ++- style.css | 4 ---- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index c9c06e1..3781fcb 100644 --- a/Makefile +++ b/Makefile @@ -26,4 +26,5 @@ atom.xml: blog.7 genatom.sh @echo "mandoc $<" $(HIDE)mandoc -Thtml -O 'man=%N.html;https://man.openbsd.org/%N.%S,style=style.css' $< \ | sed 's##&# ' \ + | sed '/Miscellaneous Information Manual<\/td>/d' \ > $@ diff --git a/genatom.sh b/genatom.sh index 3dd0c90..56a22ac 100755 --- a/genatom.sh +++ b/genatom.sh @@ -36,7 +36,8 @@ for p in $POSTS; do Miscellaneous Information Manual<\/td>/d' cat < diff --git a/style.css b/style.css index a5b0ee1..261c566 100644 --- a/style.css +++ b/style.css @@ -37,9 +37,6 @@ b,i { color: #000000 } table.foot { margin-top: 3em; } table.head { margin-bottom: 3em; } -/* hide the "miscellaneous" section bit -- too big on mobile */ -td.head-vol { visibility: hidden; } - /* scrollbars on the block-display content */ div.Bd-indent { border-left-color: gray; @@ -56,7 +53,6 @@ div.Bd-indent { /* defaults from mandoc(1)'s inlined CSS */ table.head, table.foot { width: 100%; } td.head-rtitle, td.foot-os { text-align: right; } -td.head-vol { text-align: center; } .Nd, .Bf, .Op { display: inline; } .Pa, .Ad { font-style: italic; } .Ms { font-weight: bold; } -- libgit2 1.8.1