]> git.armaanb.net Git - lightcards-http.git/blob - convert
Add issue tracker link, table of contents
[lightcards-http.git] / convert
1 #!/usr/bin/env bash
2
3 curl -O https://git.sr.ht/~armaan/lightcards/blob/main/man/lightcards.1
4 curl -O https://git.sr.ht/~armaan/lightcards/blob/main/man/lightcards-config.5
5
6 find . -type f -name 'lightcards**' -not -name '*min*' | \
7         while read i; do
8                 pandoc --self-contained ${i} > ${i}.html --css man.css
9                 minify ${i}.html > ${i}.min.html # minify doesn't support reading from stdin
10                 rm ${i}.html ${i}
11         done
12
13 minify index-raw.html > index.html