Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Add the ability to copy code #1083

Merged
merged 2 commits into from
May 8, 2023
Merged

Conversation

sywhang
Copy link
Contributor

@sywhang sywhang commented May 8, 2023

This adds the "copy" button for all code snippets in the docs example so that users can easily copy the example code to their clipboard.

Fix #1080.

Example after change:

Screen Shot 2023-05-07 at 10 37 26 PM

This adds the "copy" button for all code snippets in the docs example
so that users can easily copy the example code to their clipboard.

Fix uber-go#1080.
@sywhang sywhang requested a review from r-hang May 8, 2023 05:39
@codecov
Copy link

codecov bot commented May 8, 2023

Codecov Report

Merging #1083 (9c1a87d) into master (ec9b096) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1083   +/-   ##
=======================================
  Coverage   98.52%   98.52%           
=======================================
  Files          39       39           
  Lines        2984     2984           
=======================================
  Hits         2940     2940           
  Misses         37       37           
  Partials        7        7           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sywhang sywhang merged commit 57e421a into uber-go:master May 8, 2023
@sywhang sywhang deleted the docs-copy branch May 8, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Documentation should have a copy button for code snippets
2 participants