Skip to content

feat: add copy button for code blocks#186

Open
Yatharth-coding wants to merge 1 commit intoCollaboraOnline:masterfrom
Yatharth-coding:feature/copy-code-button
Open

feat: add copy button for code blocks#186
Yatharth-coding wants to merge 1 commit intoCollaboraOnline:masterfrom
Yatharth-coding:feature/copy-code-button

Conversation

@Yatharth-coding
Copy link

What this PR does

Adds a copy-to-clipboard button for all code blocks across the website.

Details

  • Automatically adds a copy button to <pre><code> blocks
  • Uses the modern Clipboard API
  • Provides visual feedback on successful copy
  • Does not affect existing layout or content

Testing

  • Tested locally using hugo server
  • Verified copy functionality on multiple pages with code blocks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant