summary refs log tree commit diff
path: root/www/git.causal.agency/about-filter.sh
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-01-08 01:58:44 +0000
committerJune McEnroe <june@causal.agency>2020-01-08 01:58:44 +0000
commit4aa7728283f4e0ece89437bf7933e8293063c830 (patch)
tree7e48ae5eef649edd607a2a668f6c6a45c00fafe0 /www/git.causal.agency/about-filter.sh
parentAdd The Book of Flora (diff)
downloadsrc-4aa7728283f4e0ece89437bf7933e8293063c830.tar.gz
src-4aa7728283f4e0ece89437bf7933e8293063c830.zip
Use mandoc -T html for about-filter
This also makes source-filter show mdoc source again and removes the
dependency on ttpre entirely. I copied in the inline stylesheet mandoc
outputs without -O fragment and added some customizations.
Diffstat (limited to 'www/git.causal.agency/about-filter.sh')
-rw-r--r--www/git.causal.agency/about-filter.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/www/git.causal.agency/about-filter.sh b/www/git.causal.agency/about-filter.sh
index 26a52648..c7161006 100644
--- a/www/git.causal.agency/about-filter.sh
+++ b/www/git.causal.agency/about-filter.sh
@@ -1,12 +1,8 @@
 #!/bin/sh
 
-export LANG=en_US.UTF-8
 case "$1" in
 	(*.[1-9])
-		/usr/bin/mandoc \
-			| /usr/local/libexec/ttpre \
-			| /usr/bin/sed -E \
-				's,([a-z0-9_-]+)[(]([1-9])[)],<a href="\1.\2">&</a>,g'
+		/usr/bin/mandoc -T html -O fragment,man=%N.%S,includes=../tree/%I
 		;;
 	(*)
 		exec /usr/local/libexec/hi -l text -f html