]> git.armaanb.net Git - lightcards-http.git/commitdiff
Add manpages
authorArmaan Bhojwani <me@armaanb.net>
Mon, 15 Feb 2021 01:43:44 +0000 (20:43 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Mon, 15 Feb 2021 01:43:44 +0000 (20:43 -0500)
Makefile
convert [new file with mode: 0755]
index.html

index db34726b65c6ba7a4ac12af8ec8a23df9ec63eef..78c3836334721bbd92c36f41eecab5fd0ce9824b 100644 (file)
--- 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 (executable)
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
index 33b7930974ba73a5b09621ee2c2a60574ba2fdc5..cf41254be2270be5648d92a24a45cc50aa18ba11 100644 (file)
@@ -52,6 +52,14 @@ a {
       </nav>
     </header>
 
+    <section>
+      <h2>Manpages</h2>
+      <ul>
+        <li><a href="lightcards.1">lightcards(1)</a></li>
+        <li><a href="lightcards-config.5">lightcards-config(5)</a></li>
+      </ul>
+    </section>
+
     <section>
       <h2>Gallery</h2>
       <a href="1.webp">