From 71a5e568866c03ac52650cca47a0745f58fdfd5a Mon Sep 17 00:00:00 2001 From: sagar Date: Wed, 22 Nov 2023 13:36:21 +0545 Subject: [PATCH 1/5] feat(docs): add button to copy command to clipboard --- docs/src/components/ChallengeFooter.astro | 48 +++++++++++++++++++++-- 1 file changed, 45 insertions(+), 3 deletions(-) diff --git a/docs/src/components/ChallengeFooter.astro b/docs/src/components/ChallengeFooter.astro index f73bcd0..154b10c 100644 --- a/docs/src/components/ChallengeFooter.astro +++ b/docs/src/components/ChallengeFooter.astro @@ -7,14 +7,19 @@ const authorLink = `https://github.com/tomalaforge/angular-challenges/pulls?q=la const authorDescription = `${title} solution author`; const communityLink = `https://github.com/tomalaforge/angular-challenges/pulls?q=label%3A${challengeNumber}+label%3Aanswer`; const communityDescription = `${title} community solutions`; - +const npxCommand = `npx nx serve ${command}`; ---
{command && +

Start the project by running: {npxCommand} + + + Copy + +

}