diff doc/Makefile @ 8075:08fcbdfe670b

docs: set max width for man page paragraphs to 65ch The man pages aren't displayed using the css for the rest of the site. The man pages lines are too long to read comfortably. Limit line length.
author John Rouillard <rouilj@ieee.org>
date Sat, 13 Jul 2024 00:10:18 -0400
parents 8b5f8b950f58
children ea1f377c87d6
line wrap: on
line diff
--- a/doc/Makefile	Fri Jul 12 23:41:21 2024 -0400
+++ b/doc/Makefile	Sat Jul 13 00:10:18 2024 -0400
@@ -19,6 +19,8 @@
 
 html_extra/man_pages/%.1.html: ../share/man/man1/%.1
 	man --html=cat $< > $@
+	# set max width for paragraphs
+	sed -i '/<style/,/<\/style/s/\(p\s* { \)margin/\1max-width: 65ch; margin/' $@
 	#man2html $< > $@
 
 clean:

Roundup Issue Tracker: http://roundup-tracker.org/