summaryrefslogtreecommitdiffstats
path: root/docbook/asciidoctor-macros/wsbuglink-inline-macro
diff options
context:
space:
mode:
Diffstat (limited to 'docbook/asciidoctor-macros/wsbuglink-inline-macro')
-rw-r--r--docbook/asciidoctor-macros/wsbuglink-inline-macro/extension.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/docbook/asciidoctor-macros/wsbuglink-inline-macro/extension.rb b/docbook/asciidoctor-macros/wsbuglink-inline-macro/extension.rb
deleted file mode 100644
index 6cdb665b..00000000
--- a/docbook/asciidoctor-macros/wsbuglink-inline-macro/extension.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-# SPDX-License-Identifier: MIT
-require 'asciidoctor/extensions' unless RUBY_ENGINE == 'opal'
-
-include ::Asciidoctor
-
-# An inline macro that generates a link to a Wireshark bug report.
-#
-# Usage
-#
-# wsbuglink:<number>[<issue text>]
-# Default bug text is "Issue <number>".
-#
-class WSBugLinkInlineMacro < Extensions::InlineMacroProcessor
- include WsUtils
- use_dsl
-
- named :wsbuglink
- parse_content_as :text
- name_positional_attributes 'bugtext'
-
- def process(parent, issueid, attrs)
- bugtext = attrs['bugtext'] || %(Issue #{issueid})
- target = %(https://gitlab.com/wireshark/wireshark/-/issues/#{issueid})
- create_doc_links(parent, target, bugtext)
- end
-end