ronin-rb / ronin-rb.github.io

The ronin-rb.dev website
https://ronin-rb.dev
GNU General Public License v3.0
25 stars 20 forks source link

Add copy button to codeblocks on install pages #77

Closed hendriklammers closed 3 months ago

hendriklammers commented 3 months ago

This change will add a copy to clipboard button to all code blocks on the install pages. It will show an SVG with a copy icon that changes to a checkmark after successfully copying the text.

image

As I'm not very familiar with Jekyll, I wasn't sure about the best way to include the script. Currently I've added it in the front matter for the pages that require the copy button, which seems to work.

Please let me know if any changes are required.

postmodern commented 3 months ago

@hendriklammers now that you've contributed to Ronin, would you like some free stickers? Email me or DM me which stickers you would like, your mailing address, and I can mail them to you (Note: regular international mail won't have tracking and takes a while to arrive, but is cheap. USPS Priority International mail does have a tracking number but costs $43 USD!).