-
Notifications
You must be signed in to change notification settings - Fork 133
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
Copy to Clipboard Widget in Code Blocks/Snippets #434
Comments
I agree with this, good idea. Especially for the CLI documentation where commands are the way in which you interact with the software. (BTW, I think the second screenshot shows a button that copies a link TO that specific comment in GitHub, rather than copy text to clipboard. ) |
@jackjia-ibm - I just learned that someone implemented a copy-code-block-to-clipboard feature in Vuepress. Funnily enough, they did not update their documentation about how to use the feature. I wonder if you can decipher from the PR if this code would work for this use case? - |
@BrandonJenkins14 sounds really great feature. I will do some investigation and reach you back. |
Here's one other related resource, not sure if applicable or not. |
Some minor progress, and issue:
|
Signed-off-by: Jack (T.) Jia <[email protected]>
Thanks Brandon for the investigation. I found the version of VuePress we are using is 0.14.1 which doesn't support plugin. I created an issue to upgrade later once VuePress announced formal v1.x. #522. PR #523 created for this issue. Please check if this is good enough or let me know how you want to change. |
issue #434 copy to clipboard
Fixed with #523 |
Is your request for enhancement related to a problem?
We rec'd an enhancement/suggestion to help users copy code snippets from our online help code blocks to their clipboard.
The user wants to issue a command line command to install something. We provide the precise command to issue. The user's browser didnt cooperate with them so it took a few tries to select the code snippet and perform a copy task (right-click/control+c). The user indicates that clicking 'copy to clipboard' widget in the code block would be very helpful.
Describe the solution you'd like
See the screen shot in below.
Related doc pages
https://zowe.github.io/docs-site/latest/user-guide/cli-installcli.html#installing-zowe-cli-from-an-online-registry
Additional context
Here is the code block. I mocked up what the widget can look like like and some alt text.
The text was updated successfully, but these errors were encountered: