Skip to content

doc: add copybutton to code snippets#1301

Merged
tomwhite merged 1 commit into
sgkit-dev:mainfrom
ianhi:copybutton
Apr 2, 2025
Merged

doc: add copybutton to code snippets#1301
tomwhite merged 1 commit into
sgkit-dev:mainfrom
ianhi:copybutton

Conversation

@ianhi
Copy link
Copy Markdown
Contributor

@ianhi ianhi commented Apr 1, 2025

Add https://sphinx-copybutton.readthedocs.io/en/latest/ to the doc build. This adds a handy button on code snippets that enables copying the entire block

Copy link
Copy Markdown
Member

@jeromekelleher jeromekelleher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, very handy

Copy link
Copy Markdown
Member

@tomwhite tomwhite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @ianhi!

I tried building locally and it adds the copy button.

@tomwhite tomwhite merged commit 4f99a08 into sgkit-dev:main Apr 2, 2025
4 of 10 checks passed
@ianhi ianhi deleted the copybutton branch April 3, 2025 15:15
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.

3 participants