When reading a config value, pick the last value, not the first
[stgit] / Documentation / asciidoc.conf
CommitLineData
4ec67741 1[attributes]
a1e0467d
KH
2asterisk=*
3plus=+
4caret=^
4ec67741
YD
5startsb=[
6endsb=]
7tilde=~
8
9ifdef::backend-docbook[]
a1e0467d 10ifndef::docbook-xsl-172[]
4ec67741 11# "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
a1e0467d 12# v1.72 breaks with this because it replaces dots not in roff requests.
4ec67741
YD
13[listingblock]
14<example><title>{title}</title>
15<literallayout>
a1e0467d
KH
16ifdef::doctype-manpage[]
17&#10;.ft C&#10;
18endif::doctype-manpage[]
4ec67741 19|
a1e0467d
KH
20ifdef::doctype-manpage[]
21&#10;.ft&#10;
22endif::doctype-manpage[]
4ec67741
YD
23</literallayout>
24{title#}</example>
a1e0467d
KH
25endif::docbook-xsl-172[]
26endif::backend-docbook[]
27
28ifdef::doctype-manpage[]
29ifdef::backend-docbook[]
30[header]
31template::[header-declarations]
32<refentry>
33<refmeta>
34<refentrytitle>{mantitle}</refentrytitle>
35<manvolnum>{manvolnum}</manvolnum>
36<refmiscinfo class="source">StGit</refmiscinfo>
37<refmiscinfo class="version">{stgit_version}</refmiscinfo>
38<refmiscinfo class="manual">StGit Manual</refmiscinfo>
39</refmeta>
40<refnamediv>
41 <refname>{manname}</refname>
42 <refpurpose>{manpurpose}</refpurpose>
43</refnamediv>
44endif::backend-docbook[]
45endif::doctype-manpage[]
46
9777fa36 47## linkman: macro
a1e0467d 48#
9777fa36 49# Usage: linkman:command[manpage-section]
a1e0467d
KH
50#
51# Note, {0} is the manpage section, while {target} is the command.
52#
53# Show link as: <command>(<section>); if section is defined, else just
54# show the command.
55
56ifdef::backend-docbook[]
9777fa36 57[linkman-inlinemacro]
a1e0467d
KH
58{0%{target}}
59{0#<citerefentry>}
60{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
61{0#</citerefentry>}
4ec67741
YD
62endif::backend-docbook[]
63
64ifdef::backend-xhtml11[]
9777fa36 65[linkman-inlinemacro]
4ec67741
YD
66<a href="{target}.html">{target}{0?({0})}</a>
67endif::backend-xhtml11[]
68
760a7cfc 69## linkstg: macro
a1e0467d 70#
760a7cfc 71# Usage: linkstg:command[]
a1e0467d
KH
72#
73# Show StGit link as: stg-<command>(1) in man pages, stg <command> in
74# html.
4ec67741
YD
75
76ifdef::backend-docbook[]
760a7cfc 77[linkstg-inlinemacro]
4ec67741 78<citerefentry>
a1e0467d 79 <refentrytitle>stg-{target}</refentrytitle><manvolnum>1</manvolnum>
4ec67741
YD
80</citerefentry>
81endif::backend-docbook[]
82
83ifdef::backend-xhtml11[]
760a7cfc 84[linkstg-inlinemacro]
a1e0467d 85<a href="stg-{target}.html">stg {target}</a>
4ec67741 86endif::backend-xhtml11[]
33ff9cdd 87
760a7cfc 88## linkstgsub: macro
33ff9cdd 89#
760a7cfc 90# Usage: linkstgsub:command[]
33ff9cdd 91#
760a7cfc 92# Show StGit link as: <command>.
33ff9cdd
KH
93
94ifdef::backend-docbook[]
760a7cfc 95[linkstgsub-inlinemacro]
33ff9cdd
KH
96{target}
97endif::backend-docbook[]
98
99ifdef::backend-xhtml11[]
760a7cfc 100[linkstgsub-inlinemacro]
33ff9cdd
KH
101<a href="stg-{target}.html">{target}</a>
102endif::backend-xhtml11[]