source: trunk/base/doc/asciidoc.conf @ 125257

Last change on this file since 125257 was 123940, checked in by cal@…, 5 years ago

base: port-distcheck.1: typo, use source: URL to reference contrib script, add source: macro to asciidoc.conf

File size: 1.5 KB
Line 
1[attributes]
2mansource=MacPorts
3#manversion is in the Makefile
4manmanual=MacPorts Manual
5guideurl=http://guide.macports.org/
6wikiurl=https://trac.macports.org/wiki/
7sourceurl=https://trac.macports.org/browser/
8
9## man: macro
10#
11# Usage: man:command[manpage-section]
12#
13# Note, {0} is the manpage section, while {target} is the command.
14#
15# Show link as: <command>(<section>); if section is defined, else just show
16# the command.
17
18[macros]
19(?su)[\\]?(?P<name>man):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
20(?su)[\\]?(?P<name>guide):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
21(?su)[\\]?(?P<name>wiki):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
22(?su)[\\]?(?P<name>source):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
23
24# man: and guide: for docbook
25ifdef::backend-docbook[]
26[man-inlinemacro]
27<citerefentry>
28    <refentrytitle>{target}</refentrytitle>{0?<manvolnum>{0}</manvolnum>}
29</citerefentry>
30[guide-inlinemacro]
31<ulink url="{guideurl}#{target}">{0={guideurl}#{target}}</ulink>
32[wiki-inlinemacro]
33<ulink url="{wikiurl}{target}">{0={target}}</ulink>
34[source-inlinemacro]
35<ulink url="{sourceurl}{target}">{0={target}}</ulink>
36endif::backend-docbook[]
37
38# man: and guide: for xhtml11
39ifdef::backend-xhtml11[]
40[man-inlinemacro]
41<a href="{target}{0?.{0}}.html">{target}{0?({0})}</a>
42[guide-inlinemacro]
43<a href="{guideurl}#{target}">{0={guideurl}#{target}}</a>
44[wiki-inlinemacro]
45<a href="{wikiurl}{target}">{0={target}}</a>
46[source-inlinemacro]
47<a href="{sourceurl}{target}">{0={target}}</a>
48endif::backend-xhtml11[]
49
50[paradef-default]
51cmdsynopsis-style=template="verseparagraph"
Note: See TracBrowser for help on using the repository browser.