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

feat: add copy button to terminal commands #641

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

ronanru
Copy link
Contributor

@ronanru ronanru commented Oct 31, 2023

This PR adds a copy button to all terminal commands.
image

distro.yml file already had a lot of repeating html so instead of adding a button to each command there I added a custom component <terminal-command> that adds a button and a dollar sign before every line on page load.

@ronanru ronanru changed the title feat: copy button on terminal commands feat: copy button to terminal commands Oct 31, 2023
@ronanru ronanru changed the title feat: copy button to terminal commands feat: add copy button to terminal commands Nov 1, 2023
@AsciiWolf
Copy link
Collaborator

Wow, that's great!

@jimmac @barthalion Any chance you could review this PR? Thanks!

@barthalion
Copy link
Member

Looks good to me.

@jimmac
Copy link
Contributor

jimmac commented Dec 1, 2023

Can't really comment on the code, but in terms of improved experience, it's good.

@AsciiWolf
Copy link
Collaborator

@razzeee Is it ok to merge this? I am not sure whether the Flathub setup page is manually copied from the Flatpak.org quick setup page or if there is some automatic script involved.

@razzeee
Copy link
Contributor

razzeee commented Dec 1, 2023

Don't worry about the flathub site, it's a manual process right now and I can take care of breakage.

@AsciiWolf
Copy link
Collaborator

Thanks! Let's merge this. :-)

@AsciiWolf AsciiWolf merged commit 5735d0c into flatpak:source Dec 1, 2023
1 check passed
</code></pre>
<terminal-command>
echo -e 'sys-apps/flatpak ~amd64\nacct-user/flatpak ~amd64\nacct-group/flatpak ~amd64\ndev-util/ostree ~amd64' >> /etc/portage/package.accept_keywords/flatpak
</terminal-commande>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants