thegreenwebfoundation / thegreenwebfoundation/developer-docs

Add a Click to Copy Button for Code Blocks in docs

Open
#36 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #38 by @tarunsinghofficial — closed without merging
gwf-green-code-challenge
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:

Screenshot:
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.