-
Notifications
You must be signed in to change notification settings - Fork 100
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
Conversation
Wow, that's great! @jimmac @barthalion Any chance you could review this PR? Thanks! |
Looks good to me. |
Can't really comment on the code, but in terms of improved experience, it's good. |
@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. |
Don't worry about the flathub site, it's a manual process right now and I can take care of breakage. |
Thanks! Let's merge this. :-) |
</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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch, thanks!
This PR adds a copy button to all terminal commands.
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.