Skip to content

copy button next to commands - #805

Merged
dzikowski merged 1 commit into
hyperledger-labs:mainfrom
Efeguclu1:feat/docs-copy-button
Aug 6, 2026
Merged

copy button next to commands#805
dzikowski merged 1 commit into
hyperledger-labs:mainfrom
Efeguclu1:feat/docs-copy-button

Conversation

@Efeguclu1

Copy link
Copy Markdown
Contributor

docs: add copy button to code blocks

Every command on the docs site had to be selected by hand. This adds a
copy button to each code block, injected client-side so there is no build
step or dependency.

Falls back to execCommand where the async clipboard API is unavailable,
and stays visible on touch devices that have no hover state.

Signed-off-by: Efeguclu1 <efeguclu3435@gmail.com>
@dzikowski
dzikowski merged commit 807b3b7 into hyperledger-labs:main Aug 6, 2026
10 checks passed
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.

2 participants