From d5061dcf82f64c2cf3ba559760a37808c57d9031 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Fri, 8 Apr 2022 15:30:23 -0600 Subject: [PATCH] man: Use custom XSL stylesheet for HTML output This allows using a template stolen from systemd to turn references into links. --- Makefile-man.am | 3 ++- man/html.xsl | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 man/html.xsl diff --git a/Makefile-man.am b/Makefile-man.am index 1779edc1..3f941bed 100644 --- a/Makefile-man.am +++ b/Makefile-man.am @@ -68,7 +68,8 @@ endif EXTRA_DIST += $(man1_MANS:.1=.xml) $(man5_MANS:.5=.xml) XSLT_MAN_STYLESHEET = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl -XSLT_HTML_STYLESHEET = http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl +XSLT_HTML_STYLESHEET = man/html.xsl +EXTRA_DIST += $(XSLT_HTML_STYLESHEET) XSLTPROC_FLAGS = \ --nonet \ diff --git a/man/html.xsl b/man/html.xsl new file mode 100644 index 00000000..17a425d4 --- /dev/null +++ b/man/html.xsl @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + .html + + + + + +