summaryrefslogtreecommitdiffstats
path: root/doc/asciidoctor-macros/wssalink-inline-macro.rb
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:33 +0000
commit9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 (patch)
tree2784370cda9bbf2da9114d70f05399c0b229d28c /doc/asciidoctor-macros/wssalink-inline-macro.rb
parentAdding debian version 4.2.6-1. (diff)
downloadwireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.tar.xz
wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.zip
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'doc/asciidoctor-macros/wssalink-inline-macro.rb')
-rw-r--r--doc/asciidoctor-macros/wssalink-inline-macro.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/asciidoctor-macros/wssalink-inline-macro.rb b/doc/asciidoctor-macros/wssalink-inline-macro.rb
new file mode 100644
index 00000000..3172ea50
--- /dev/null
+++ b/doc/asciidoctor-macros/wssalink-inline-macro.rb
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: MIT
+# Copied from https://github.com/asciidoctor/asciidoctor-extensions-lab/blob/master/lib/man-inline-macro.rb
+
+RUBY_ENGINE == 'opal' ? (require 'wssalink-inline-macro/extension') : (require_relative 'wssalink-inline-macro/extension')
+
+Extensions.register do
+ inline_macro WSSALinkInlineMacro
+end