From 642345f4f7b58c624823ff57c9b85bee8ac332d7 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Mon, 15 Feb 2021 11:41:57 -0500 Subject: [PATCH] Switch from groff to pandoc --- convert | 4 ++-- man.css | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 man.css diff --git a/convert b/convert index 88ec1d2..93f7423 100755 --- a/convert +++ b/convert @@ -5,8 +5,8 @@ curl -O https://git.sr.ht/~armaan/lightcards/blob/main/man/lightcards-config.5 find . -type f -name 'lightcards**' -not -name '*min*' | \ while read i; do - groff -mandoc -T html ${i} > ${i}.html - minify ${i}.html > ${i}.min.html + pandoc --self-contained ${i} > ${i}.html --css man.css + minify ${i}.html > ${i}.min.html # minify doesn't support reading from stdin rm ${i}.html ${i} done diff --git a/man.css b/man.css new file mode 100644 index 0000000..f98ea0e --- /dev/null +++ b/man.css @@ -0,0 +1 @@ +body{margin:1em auto;max-width:650px;line-height:1.6;padding:0 10px;font-size:18px;font-family:serif}h1{font-size:1.25em}h2{font-size:1em;font-style:italic;text-decoration:underline} \ No newline at end of file -- 2.39.2