We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db90a71 commit 5e3dcacCopy full SHA for 5e3dcac
_plugins/asciidoctor-extension.rb
@@ -52,6 +52,18 @@
52
end
53
54
55
+Extensions.register do
56
+ inline_macro do
57
+ named :config_property_copy_button
58
+ resolve_attributes false
59
+ process do |parent, target, attrs|
60
+ config_property = target.gsub('"', '\\\\"')
61
+ copy_btn = %(<button class="btn-copy fa fa-clipboard inline-btn-copy" data-clipboard-action="copy" data-clipboard-text="#{config_property}" title="Copy to clipboard" do-not-collapse="true"></button>)
62
+ config_property_id += 1
63
+ create_inline_pass parent, %(#{copy_btn})
64
+ end
65
66
+end
67
68
### ALL CONFIG page processors
69
0 commit comments