From: Armaan Bhojwani Date: Mon, 15 Feb 2021 01:43:44 +0000 (-0500) Subject: Add manpages X-Git-Url: https://git.armaanb.net/?p=lightcards-http.git;a=commitdiff_plain;h=444993e7f662a47dc270c87ac752d6e8565d57d8 Add manpages --- diff --git a/Makefile b/Makefile index db34726..78c3836 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ .DEFAULT_GOAL := minify minify: - minify index.html > index.min.html + ./convert 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 diff --git a/index.html b/index.html index 33b7930..cf41254 100644 --- a/index.html +++ b/index.html @@ -52,6 +52,14 @@ a { +
+

Manpages

+ +
+

Gallery