summaryrefslogtreecommitdiffstats
path: root/doc/asciidoctor-macros/manarg-block.rb
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:53 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:53 +0000
commita86c5f7cae7ec9a3398300555a0b644689d946a1 (patch)
tree39fe4b107c71174fd1e8a8ceb9a4d2aa14116248 /doc/asciidoctor-macros/manarg-block.rb
parentReleasing progress-linux version 4.2.6-1~progress7.99u1. (diff)
downloadwireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.tar.xz
wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.zip
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'doc/asciidoctor-macros/manarg-block.rb')
-rw-r--r--doc/asciidoctor-macros/manarg-block.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/asciidoctor-macros/manarg-block.rb b/doc/asciidoctor-macros/manarg-block.rb
new file mode 100644
index 00000000..07a9bf26
--- /dev/null
+++ b/doc/asciidoctor-macros/manarg-block.rb
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: MIT
+# Adapted from https://github.com/asciidoctor/asciidoctor-extensions-lab/blob/master/lib/man-inline-macro.rb
+
+RUBY_ENGINE == 'opal' ? (require 'manarg-block/extension') : (require_relative 'manarg-block/extension')
+
+Extensions.register do
+ block ManArgBlock
+end