Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions _plugins/asciidoctor-extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@
end
end

Extensions.register do
inline_macro do
named :config_property_copy_button
resolve_attributes false
process do |parent, target, attrs|
copy_btn = %(<button class="btn-copy fa fa-clipboard inline-btn-copy" data-clipboard-action="copy" data-clipboard-text='#{target}' title="Copy to clipboard" do-not-collapse="true"></button>)
create_inline_pass parent, %(#{copy_btn})
end
end
end

### ALL CONFIG page processors

Expand Down