From: Felipe Contreras Date: Thu, 13 Apr 2023 11:57:43 GMT Subject: [RFC PATCH 10/12] doc: stylesheet: move all the xslt templates Message-ID: <20230413115745.116063-11-felipe.contreras@gmail.com> In-Reply-To: <20230413115745.116063-1-felipe.contreras@gmail.com> There's no need to have them scattered everywhere. Signed-off-by: Felipe Contreras --- Documentation/gen-stylesheet | 42 +++++++++++++++++++++----- Documentation/manpage-bold-literal.xsl | 16 ---------- Documentation/manpage-normal.xsl | 26 ---------------- 3 files changed, 35 insertions(+), 49 deletions(-) delete mode 100644 Documentation/manpage-bold-literal.xsl delete mode 100644 Documentation/manpage-normal.xsl diff --git a/Documentation/gen-stylesheet b/Documentation/gen-stylesheet index c006a85c39..7d1839fcab 100755 --- a/Documentation/gen-stylesheet +++ b/Documentation/gen-stylesheet @@ -1,17 +1,45 @@ #!/bin/sh -includes='manpage-normal.xsl' -test -z "$NO_MAN_BOLD_LITERAL" && includes="$includes manpage-bold-literal.xsl" - cat < EOF -for x in $includes -do - printf '\n' "$x" -done +# these params silence some output from xsltproc +cat < + +EOF + +# convert asciidoc callouts to man page format +cat < + + + + .sp + + + + + + + .br + +EOF + +if [[ -z "$NO_MAN_BOLD_LITERAL" ]] +then + # render literal text as bold (instead of plain or monospace); this makes + # literal text easier to distinguish in manpages viewed on a tty + cat <<-EOF + + \fB + + \fR + + EOF +fi echo "" diff --git a/Documentation/manpage-bold-literal.xsl b/Documentation/manpage-bold-literal.xsl deleted file mode 100644 index e13db85693..0000000000 --- a/Documentation/manpage-bold-literal.xsl +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - \fB - - \fR - - - diff --git a/Documentation/manpage-normal.xsl b/Documentation/manpage-normal.xsl deleted file mode 100644 index 3fb044a8a7..0000000000 --- a/Documentation/manpage-normal.xsl +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - .sp - - - - - - - .br - - - -- 2.40.0+fc1