thegreenwebfoundation / developer-docs

The developer documentation site for The Green Web Foundations open source libraries.
https://developers.thegreenwebfoundation.org
Apache License 2.0
5 stars 12 forks source link

added the click to copy button for code blocks #38

Open tarunsinghofficial opened 2 months ago

tarunsinghofficial commented 2 months ago

Changes Made:

I have added the feature as discussed in the issue tracker. When the user sees any code blocks on the developer documentation site, he/she will now be able to copy the whole code with a single click.

Screenshot: bandicam2024-04-2213-56-36-669-ezgif com-crop

This resolves issue #36 .

tarunsinghofficial commented 2 months ago

Hi @fershad,

Thank you for your feedback and suggestions regarding the code optimization. I'm keen to implement the changes you've suggested, but I wanted to confirm the next steps with you.

Would you prefer if I move the complete event listener into a separate file, or should I focus on integrating 11ty using Transform as you mentioned?

Your guidance on this would be greatly appreciated.

fershad commented 2 months ago

It'd be both @tarunsinghofficial. I've left comments in the changed file for you