thegreenwebfoundation / thegreenwebfoundation/developer-docs
Add a Click to Copy Button for Code Blocks in docs
Nobody has claimed this yet.
- #38 by @tarunsinghofficial — closed without merging
- Dominant language
- JavaScript
- Stars
- 7
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem? Please describe:
It is important to have a "copy" button available on code blocks in the documentation. This will allow users to easily copy the entire code without accidentally leaving any important parts behind.
Describe the solution you'd like:
We will use JavaScript to implement the copy functionality throughout the complete documentation, allowing for a specific code block to be copied.
Steps to reproduce:
- Go to the developer documentation website.
- Check for any code block
Screenshot:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the developer documentation website linked in the issue and inspect how its code blocks are rendered. Review the existing pull request linked to this issue before making changes. Done means code blocks throughout the documentation provide a way to copy the complete block.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100