1 # asciidoc.conf - AsciiDoc configuration file
7 # Taken from git; modified
9 # Usage: linkpage:command[manpage-section]
10 # Usage: linkpage:htmlfile[]
12 # Note, {0} is the manpage section, while {target} is the command.
14 # Show GIT link as: <command>(<section>); if section is defined, else just show
18 (?su)[\\]?(?P<name>linkpage):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
32 ifdef::backend-docbook[]
33 [linkpage-inlinemacro]
36 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
38 endif::backend-docbook[]
40 ifdef::backend-docbook[]
41 ifndef::git-asciidoc-no-roff[]
42 # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
43 # v1.72 breaks with this because it replaces dots not in roff requests.
45 <example><title>{title}</title>
47 ifdef::doctype-manpage[]
49 endif::doctype-manpage[]
51 ifdef::doctype-manpage[]
53 endif::doctype-manpage[]
56 endif::git-asciidoc-no-roff[]
58 ifdef::git-asciidoc-no-roff[]
59 ifdef::doctype-manpage[]
60 # The following two small workarounds insert a simple paragraph after screen
62 <example><title>{title}</title>
65 </literallayout><simpara></simpara>
69 <formalpara{id? id="{id}"}><title>{title}</title><para>
70 {title%}<literallayout{id? id="{id}"}>
71 {title#}<literallayout>
74 {title#}</para></formalpara>
75 {title%}<simpara></simpara>
76 endif::doctype-manpage[]
77 endif::git-asciidoc-no-roff[]
78 endif::backend-docbook[]
80 ifdef::doctype-manpage[]
81 ifdef::backend-docbook[]
83 template::[header-declarations]
86 <refentrytitle>{mantitle}</refentrytitle>
87 <manvolnum>{manvolnum}</manvolnum>
88 <refmiscinfo class="source">{packagename}</refmiscinfo>
89 <refmiscinfo class="version">{version}</refmiscinfo>
90 <refmiscinfo class="manual">{packagename} commands</refmiscinfo>
93 <refname>{manname}</refname>
94 <refpurpose>{manpurpose}</refpurpose>
96 endif::backend-docbook[]
97 endif::doctype-manpage[]
99 ifdef::backend-xhtml11[]
101 git-relative-html-prefix=
102 [linkpage-inlinemacro]
103 <a href="{git-relative-html-prefix}{target}{0?.{0}}.html">{target}{0?({0})}</a>
104 endif::backend-xhtml11[]
109 #(^|[^-\\])--($|[^-])=\1--\2