X-Git-Url: https://git.armaanb.net/?p=lightcards-http.git;a=blobdiff_plain;f=convert;fp=convert;h=7252a0ab4912afcd8a6672fe6f7aadbd31cf6464;hp=0000000000000000000000000000000000000000;hb=444993e7f662a47dc270c87ac752d6e8565d57d8;hpb=c5c4d0169762a795a6d42bd15ce6f2218b7d285e diff --git a/convert b/convert new file mode 100755 index 0000000..7252a0a --- /dev/null +++ b/convert @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +curl -O https://git.sr.ht/~armaan/lightcards/blob/main/man/lightcards.1 +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 -Thtml ${i} > ${i}.html + minify ${i}.html > ${i}.min.html + rm ${i}.html + done + +minify index.html > index.min.html +rm lightcards.1 lightcards-config.5