summaryrefslogtreecommitdiff
path: root/docbook/asciidoc.conf
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-03-15 15:05:51 +0000
committerGerald Combs <gerald@wireshark.org>2013-03-15 15:05:51 +0000
commite2e3f5863a05f0a08cc3043e05fc6646c43b5015 (patch)
treed894d26151c1b5477e084a16d293904e4d4db939 /docbook/asciidoc.conf
parent005a83e54fc90a0fb627f73d46c0b61ace9f69c1 (diff)
downloadwireshark-e2e3f5863a05f0a08cc3043e05fc6646c43b5015.tar.gz
Add missing Asciidoc configuration.
svn path=/trunk/; revision=48315
Diffstat (limited to 'docbook/asciidoc.conf')
-rw-r--r--docbook/asciidoc.conf32
1 files changed, 32 insertions, 0 deletions
diff --git a/docbook/asciidoc.conf b/docbook/asciidoc.conf
new file mode 100644
index 0000000000..e01b678c52
--- /dev/null
+++ b/docbook/asciidoc.conf
@@ -0,0 +1,32 @@
+
+[macros]
+
+# bugs.wireshark.org
+# ws-buglink:<dddd>
+(?su)(?<!\w)[\\]?ws-buglink:(?P<target>\d+)=ws-buglink
+
+# CVE ID
+# cve-idlink:<dddd-dddd>
+(?su)(?<!\w)[\\]?cve-idlink:(?P<target>\d{4}-\d+)=cve-idlink
+
+
+ifdef::backend-docbook45[]
+
+[ws-buglink-inlinemacro]
+<ulink url="https://bugs.wireshark.org/bugzilla/show_bug.cgi?id={target}">Bug {target}</ulink>
+
+[cve-idlink-inlinemacro]
+<ulink url="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-{target}">CVE-{target}</ulink>
+
+endif::backend-docbook45[]
+
+
+ifdef::backend-html4,backend-html5,backend-xhtml11[]
+
+[ws-buglink-inlinemacro]
+<a href="https://bugs.wireshark.org/bugzilla/show_bug.cgi?id={target}">Bug {target}</a>
+
+[cve-idlink-inlinemacro]
+<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-{target}">CVE-{target}</a>
+
+endif::backend-html4,backend-html5,backend-xhtml11[]