]> git.armaanb.net Git - lightcards-http.git/blobdiff - convert
Add issue tracker link, table of contents
[lightcards-http.git] / convert
diff --git a/convert b/convert
index 7252a0ab4912afcd8a6672fe6f7aadbd31cf6464..93f74234cb248d8c23e8d4a4f79e2b66df67cace 100755 (executable)
--- a/convert
+++ b/convert
@@ -5,10 +5,9 @@ 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
+               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
 
-minify index.html > index.min.html
-rm lightcards.1 lightcards-config.5
+minify index-raw.html > index.html