From: Sean Estabrooks <seanlkml@sympatico.ca>
To: git@vger.kernel.org
Cc: Sean Estabrooks <seanlkml@sympatico.ca>
Subject: [PATCH] Properly render asciidoc "callouts" in git man pages.
Date: Fri, 28 Apr 2006 09:15:06 -0400 [thread overview]
Message-ID: <BAYC1-PASMTP030E0E35B1984789C397EEAEB20@CEZ.ICE> (raw)
Message-ID: <11462301063607-git-send-email-seanlkml@sympatico.ca> (raw)
In-Reply-To: <1146230106696-git-send-email-seanlkml@sympatico.ca>
Adds an xsl fragment to render docbook callouts when
converting to man page format. Update the Makefile
to have "xmlto" use it when generating man pages.
Signed-off-by: Sean Estabrooks <seanlkml@sympatico.ca>
---
Documentation/Makefile | 2 +-
Documentation/callouts.xsl | 16 ++++++++++++++++
2 files changed, 17 insertions(+), 1 deletions(-)
create mode 100644 Documentation/callouts.xsl
82ee912fb2a58194cac3d65b15abc98190a3359a
diff --git a/Documentation/Makefile b/Documentation/Makefile
index f4cbf7e..c1af22c 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -79,7 +79,7 @@ clean:
asciidoc -b xhtml11 -d manpage -f asciidoc.conf $<
%.1 %.7 : %.xml
- xmlto man $<
+ xmlto -m callouts.xsl man $<
%.xml : %.txt
asciidoc -b docbook -d manpage -f asciidoc.conf $<
diff --git a/Documentation/callouts.xsl b/Documentation/callouts.xsl
new file mode 100644
index 0000000..ad03755
--- /dev/null
+++ b/Documentation/callouts.xsl
@@ -0,0 +1,16 @@
+<!-- callout.xsl: converts asciidoc callouts to man page format -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<xsl:template match="co">
+ <xsl:value-of select="concat('\fB(',substring-after(@id,'-'),')\fR')"/>
+</xsl:template>
+<xsl:template match="calloutlist">
+ <xsl:text>.sp </xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text> </xsl:text>
+</xsl:template>
+<xsl:template match="callout">
+ <xsl:value-of select="concat('\fB',substring-after(@arearefs,'-'),'. \fR')"/>
+ <xsl:apply-templates/>
+ <xsl:text>.br </xsl:text>
+</xsl:template>
+</xsl:stylesheet>
--
1.3.1.gc672
prev parent reply other threads:[~2006-04-28 13:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <11462301062278-git-send-email-seanlkml@sympatico.ca>
2006-04-28 13:15 ` [PATCH] Fix trivial typo in git-log man page Sean Estabrooks
[not found] ` <11462301063885-git-send-email-seanlkml@sympatico.ca>
2006-04-28 13:15 ` [PATCH] Update the git-branch man page to include the "-r" option, Sean Estabrooks
[not found] ` <1146230106696-git-send-email-seanlkml@sympatico.ca>
2006-04-28 13:15 ` [PATCH] Fix up remaining man pages that use asciidoc "callouts" Sean Estabrooks
[not found] ` <11462301063607-git-send-email-seanlkml@sympatico.ca>
2006-04-28 13:15 ` Sean Estabrooks [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAYC1-PASMTP030E0E35B1984789C397EEAEB20@CEZ.ICE \
--to=seanlkml@sympatico.ca \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox