From 444993e7f662a47dc270c87ac752d6e8565d57d8 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sun, 14 Feb 2021 20:43:44 -0500 Subject: [PATCH] Add manpages --- Makefile | 2 +- convert | 14 ++++++++++++++ index.html | 8 ++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 convert 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

-- 2.39.2