Documentation / asciidoc.confon commit Merge branch 'js/filter' (0f2890a)
   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]
  11plus=&#43;
  12caret=&#94;
  13startsb=&#91;
  14endsb=&#93;
  15tilde=&#126;
  16
  17ifdef::backend-docbook[]
  18[gitlink-inlinemacro]
  19{0%{target}}
  20{0#<citerefentry>}
  21{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
  22{0#</citerefentry>}
  23endif::backend-docbook[]
  24
  25ifdef::backend-docbook[]
  26# "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
  27[listingblock]
  28<example><title>{title}</title>
  29<literallayout>
  30|
  31</literallayout>
  32{title#}</example>
  33endif::backend-docbook[]
  34
  35ifdef::doctype-manpage[]
  36ifdef::backend-docbook[]
  37[header]
  38template::[header-declarations]
  39<refentry>
  40<refmeta>
  41<refentrytitle>{mantitle}</refentrytitle>
  42<manvolnum>{manvolnum}</manvolnum>
  43<refmiscinfo class="source">Git</refmiscinfo>
  44<refmiscinfo class="version">{git_version}</refmiscinfo>
  45<refmiscinfo class="manual">Git Manual</refmiscinfo>
  46</refmeta>
  47<refnamediv>
  48  <refname>{manname}</refname>
  49  <refpurpose>{manpurpose}</refpurpose>
  50</refnamediv>
  51endif::backend-docbook[]
  52endif::doctype-manpage[]
  53
  54ifdef::backend-xhtml11[]
  55[gitlink-inlinemacro]
  56<a href="{target}.html">{target}{0?({0})}</a>
  57endif::backend-xhtml11[]