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]: Copy button in code markup section #1537

Open
adsingh14 opened this issue Oct 25, 2022 · 5 comments
Open

[docs]: Copy button in code markup section #1537

adsingh14 opened this issue Oct 25, 2022 · 5 comments
Labels
documentation Because documentation is important and shouldn't be broken

Comments

@adsingh14
Copy link

Description

  1. Visit this link.
  2. In 'Markup' section, there should be a 'Copy text' or 'Copy icon' button on top-right corner.

Why do you need this feature or component?

Some sections are having multiple code blocks which take much time if we need to copy the whole section manually. For example, take Accordion section, having a 'Copy' button can save much time.

Additional context

I have marked yellow dot (in the attachment.

image

@adsingh14 adsingh14 added the enhancement A request to add a feature to a component label Oct 25, 2022
@castastrophe
Copy link
Collaborator

Great suggestion. @Rajdeepc, I found this plugin you might consider including that would add the copy link to the code snippets: https://www.npmjs.com/package/eleventy-plugin-code-clipboard

@adsingh14
Copy link
Author

I would also like to contribute if assigned.

@castastrophe
Copy link
Collaborator

@adsingh14 That's wonderful! At the moment @Rajdeepc is working on a rewrite of our documentation site to use 11ty so we would want to hold off adding new features until the migration is complete. We'll definitely reach out though after if the feature hasn't yet been implemented.

@castastrophe castastrophe changed the title Copy button in code markup section [docs]: Copy button in code markup section Mar 6, 2023
@castastrophe castastrophe added documentation Because documentation is important and shouldn't be broken and removed enhancement A request to add a feature to a component labels Mar 6, 2023
@adsingh14
Copy link
Author

@castastrophe I visited the documentation and the 'copy code' button is still missing.

@castastrophe
Copy link
Collaborator

Yes, the documentation rework has not yet been merged. I'll update the ticket when that work is published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Because documentation is important and shouldn't be broken
Projects
None yet
Development

No branches or pull requests

2 participants