Skip to content

feat: implement copy button for code snippets#6530

Open
Apolo151 wants to merge 1 commit intopipe-cd:masterfrom
Apolo151:docs-copy-code-button
Open

feat: implement copy button for code snippets#6530
Apolo151 wants to merge 1 commit intopipe-cd:masterfrom
Apolo151:docs-copy-code-button

Conversation

@Apolo151
Copy link

What this PR does:

Adds a copy button to all code snippets in the docs.

Before
image

After
image

Why we need it:
Better UX for users and contributors.

Which issue(s) this PR fixes:

Fixes #6526

Does this PR introduce a user-facing change?:
Yes

  • How are users affected by this change Better UX, Users can copy any code snippet by simply clicking the button instead of having to select the text.

  • Is this breaking change: No, users can still select the code snippet as usual.

  • How to migrate (if breaking change): NA

@Apolo151 Apolo151 requested review from a team as code owners February 12, 2026 14:16
@rahulshendre
Copy link
Contributor

Hi @Apolo151, thanks for the PR.
The DCO check is failing. Please add a sign-off to the commit and re-push so the check can pass.

Signed-off-by: Apolo151 <abdallah.ibrahim5115@gmail.com>
@Apolo151 Apolo151 force-pushed the docs-copy-code-button branch from 820ba8d to 2853918 Compare February 13, 2026 09:59
@Apolo151
Copy link
Author

Hi @rahulshendre,

I have added the sign-off, sorry for the inconvenience.

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.

Docs: add copy button to code snippets

2 participants