doc: generate manual pages with a2x
[libmodbus.git] / doc / asciidoc.conf
blob5d626086cc131a521994b1a838ec3c359a8afb70
1 [paradef-default]
2 literal-style=template="literalparagraph"
4 [macros]
5 (?su)[\\]?(?P<name>linkmb):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
7 ifdef::backend-docbook[]
8 [linkmb-inlinemacro]
9 {0%{target}}
10 {0#<citerefentry>}
11 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
12 {0#</citerefentry>}
13 endif::backend-docbook[]
15 ifdef::backend-xhtml11[]
16 [linkmb-inlinemacro]
17 <a href="{target}.html">{target}{0?({0})}</a>
18 endif::backend-xhtml11[]
20 ifdef::doctype-manpage[]
21 ifdef::backend-docbook[]
22 [header]
23 template::[header-declarations]
24 <refentry>
25 <refmeta>
26 <refentrytitle>{mantitle}</refentrytitle>
27 <manvolnum>{manvolnum}</manvolnum>
28 <refmiscinfo class="source">libmodbus</refmiscinfo>
29 <refmiscinfo class="version">{libmodbus_version}</refmiscinfo>
30 <refmiscinfo class="manual">Libmodbus Manual</refmiscinfo>
31 </refmeta>
32 <refnamediv>
33   <refname>{manname}</refname>
34   <refpurpose>{manpurpose}</refpurpose>
35 </refnamediv>
36 endif::backend-docbook[]
37 endif::doctype-manpage[]
39 ifdef::backend-xhtml11[]
40 [footer]
41 </div>
42 {disable-javascript%<div id="footnotes"><hr /></div>}
43 <div id="footer">
44 <div id="footer-text">
45 libmodbus {libmodbus_version}<br />
46 Last updated {docdate} {doctime}
47 </div>
48 </div>
49 </body>
50 </html>
51 endif::backend-xhtml11[]