5be3772e8fcdfb85ae30bfd80f9f2900b30c4d3d
[metze/wireshark/wip.git] / docbook / asciidoc.conf
1 # AsciiDoc configuration for Wireshark
2 # $Id$
3
4 [replacements]
5
6 # Yes, these are fake macros.
7 wireshark-version:\[\]=1.11.3
8 wireshark-major-minor-version:\[\]=1.11
9
10 wireshark-bugs-site:\[\]=https://bugs.wireshark.org/
11 wireshark-download-page:\[\]=http://www.wireshark.org/download/
12 wireshark-git-anonhttp-url:\[\]=https://code.wireshark.org/review/wireshark
13 wireshark-git-http-url:\[\]=https://your.username@code.wireshark.org/review/wireshark
14 wireshark-git-ssh-url:\[\]=ssh://your.username@code.wireshark.org:29418/wireshark
15 wireshark-code-review-url:\[\]=https://code.wireshark.org/review
16 wireshark-code-browse-url:\[\]=https://code.wireshark.org/review/gitweb?p=wireshark.git
17 wireshark-web-site:\[\]=http://www.wireshark.org/
18 wireshark-wiki-site:\[\]=http://wiki.wireshark.org/
19
20 [macros]
21
22 # bugs.wireshark.org link
23 # ws-buglink:<dddd>[<bug text>]
24 # Default bug text is "Bug".
25 # Examples: ws-buglink:5000[] ws-buglink:4000[Wireshark bug number]
26 (?su)(?<!\w)[\\]?(?P<name>ws-buglink):(?P<target>\d+)\[(?P<attrlist>.*?)(?<!\\)\]=
27
28 # www.wireshark.org/security link
29 # ws-salink:<dddd-dd>[<advisory text>]
30 # Default advisory text is "".
31 # Examples: ws-salink:2013-32[] ws-salink:2013-12[Security advisory]
32 (?su)(?<!\w)[\\]?(?P<name>ws-salink):(?P<target>\d{4}-\d{2,3})\[(?P<attrlist>.*?)(?<!\\)\]=
33
34 # CVE ID link
35 # cve-idlink:<dddd-dddd>[]
36 # Example: cve-idlink:2013:0001
37 (?su)(?<!\w)[\\]?(?P<name>cve-idlink):(?P<target>\d{4}-\d+)\[\]=
38
39
40 ifdef::backend-docbook45[]
41
42 [ws-buglink-inlinemacro]
43 <ulink url="https://bugs.wireshark.org/bugzilla/show_bug.cgi?id={target}">{0=Bug} {target}</ulink>
44
45 [ws-salink-inlinemacro]
46 <ulink url="https://www.wireshark.org/security/wnpa-sec-{target}.html">{0=}wnpa-sec-{target}</ulink>
47
48 [cve-idlink-inlinemacro]
49 <ulink url="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-{target}">CVE-{target}</ulink>
50
51 endif::backend-docbook45[]
52
53
54 ifdef::backend-html4,backend-html5,backend-xhtml11[]
55
56 [ws-buglink-inlinemacro]
57 <a href="https://bugs.wireshark.org/bugzilla/show_bug.cgi?id={target}">{0=Bug} {target}</a>
58
59 [ws-salink-inlinemacro]
60 <a href="https://www.wireshark.org/security/wnpa-sec-{target}.html">{0=}wnpa-sec-{target}</a>
61
62 [cve-idlink-inlinemacro]
63 <a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-{target}">CVE-{target}</a>
64
65 endif::backend-html4,backend-html5,backend-xhtml11[]
66
67
68 # Given a list of items, sort and comma-separate them. Blank lines are stripped.
69 # Case is ignored. For example,
70 #
71 # --sort-and-group--
72 # One
73 # two
74 # red
75 #
76 # blue
77 # Fish
78 #
79 # --sort-and-group--
80 #
81 # produces
82 #
83 #     blue, Fish, One, red, two
84 [blockdef-sort-and-group]
85 delimiter=^--sort-and-group--$
86 style=default
87 filter=sort --ignore-case
88 default-style=template="paragraph",filter='sort --ignore-case | sed -e "s/,//g" | sed -e "/^$/d" -e "$ s/^/and /" -e "$ ! s/$/,/"'