| # Usage: gitlink:command[manpage-section] |
| # Note, {0} is the manpage section, while {target} is the command. |
| # Show GIT link as: <command>(<section>); if section is defined, else just show |
| {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>} |
| ifndef::docbook-xsl-172[] |
| # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this. |
| # v1.72 breaks with this because it replaces dots not in roff requests. |
| <example><title>{title}</title> |
| template::[header-declarations] |
| <refentrytitle>{mantitle}</refentrytitle> |
| <manvolnum>{manvolnum}</manvolnum> |
| <refmiscinfo class="source">Git</refmiscinfo> |
| <refmiscinfo class="version">{git_version}</refmiscinfo> |
| <refmiscinfo class="manual">Git Manual</refmiscinfo> |
| <refname>{manname}</refname> |
| <refpurpose>{manpurpose}</refpurpose> |
| <a href="{target}.html">{target}{0?({0})}</a> |