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

x/pkgsite: copy button and view source code link in code snippet #42486

Open
julieqiu opened this issue Nov 10, 2020 · 0 comments
Open

x/pkgsite: copy button and view source code link in code snippet #42486

julieqiu opened this issue Nov 10, 2020 · 0 comments

Comments

@julieqiu
Copy link
Contributor

@julieqiu julieqiu commented Nov 10, 2020

This feature was originally mentioned in #41587, and is now being tracked as a separate issue:

We'd like to add these features to the documentation section to improve usability:

image

Copy
Next to each code block, we will be adding a copy button, so that users can easily copy and paste the code in that block.

View Source Code
We also want to make jumping to the source identifier a more discoverable feature. To do so, if a block of code corresponds to a function, type or method, we will also include a source code widget. Clicking on that link will take users to the source code.

@gopherbot gopherbot added the pkgsite label Nov 10, 2020
@gopherbot gopherbot added this to the Unreleased milestone Nov 10, 2020
@julieqiu julieqiu modified the milestones: Unreleased, pkgsite/dochtml Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.