Documentation / asciidoc.confon commit Merge git://git.kernel.org/pub/scm/gitk/gitk (d69dc37)
   1## gitlink: macro
   2#
   3# Usage: gitlink:command[manpage-section]
   4#
   5# Note, {0} is the manpage section, while {target} is the command.
   6#
   7# Show GIT link as: <command>(<section>); if section is defined, else just show
   8# the command.
   9
  10[attributes]
  11caret=^
  12
  13ifdef::backend-docbook[]
  14[gitlink-inlinemacro]
  15{0%{target}}
  16{0#<citerefentry>}
  17{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
  18{0#</citerefentry>}
  19endif::backend-docbook[]
  20
  21ifdef::backend-docbook[]
  22# "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
  23[listingblock]
  24<example><title>{title}</title>
  25<literallayout>
  26|
  27</literallayout>
  28{title#}</example>
  29endif::backend-docbook[]
  30
  31ifdef::backend-xhtml11[]
  32[gitlink-inlinemacro]
  33<a href="{target}.html">{target}{0?({0})}</a>
  34endif::backend-xhtml11[]
  35
  36