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

Add copy button selector #5663

Merged
merged 7 commits into from
Jan 14, 2025

Conversation

christopher-hakkaart
Copy link
Collaborator

Add a selector for a commands/snippets copy button. Turned off by default but can be added selectively:

```{code-block} console
:class: copyable
...

Signed-off-by: Christopher Hakkaart <[email protected]>
Signed-off-by: Christopher Hakkaart <[email protected]>
@christopher-hakkaart christopher-hakkaart requested a review from a team as a code owner January 13, 2025 08:47
Copy link

netlify bot commented Jan 13, 2025

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 65680df
🔍 Latest deploy log https://app.netlify.com/sites/nextflow-docs-staging/deploys/678670003c45d10009f8cb2e

Signed-off-by: Christopher Hakkaart <[email protected]>
Signed-off-by: Christopher Hakkaart <[email protected]>
@bentsherman
Copy link
Member

@christopher-hakkaart do you have an idea of which snippets you would like to make copyable?

@christopher-hakkaart
Copy link
Collaborator Author

christopher-hakkaart commented Jan 13, 2025

@christopher-hakkaart do you have an idea of which snippets you would like to make copyable?

The install page and your first scrip page for now. I'm working on the your first script page in #5664. I'd like to separate out commands and outputs, and make the commands copyable.

#5664 will require some more discussion as I've rewritten the example to use targets.

@bentsherman
Copy link
Member

It would be good to make some snippets copyable in this PR, to verify that it works, or else fold these changes into your other PR. Either way is fine by me.

Signed-off-by: Christopher Hakkaart <[email protected]>
@christopher-hakkaart
Copy link
Collaborator Author

Good point. I've added copy buttons to the install page as a POC and made a few minor language edits to the text.

@bentsherman bentsherman merged commit 0af89a6 into nextflow-io:master Jan 14, 2025
10 checks passed
pinin4fjords pushed a commit to pinin4fjords/nextflow that referenced this pull request Jan 14, 2025
Signed-off-by: Christopher Hakkaart <[email protected]>
Signed-off-by: Chris Hakkaart <[email protected]>
Co-authored-by: Ben Sherman <[email protected]>
Signed-off-by: Jonathan Manning <[email protected]>
pinin4fjords pushed a commit to pinin4fjords/nextflow that referenced this pull request Jan 15, 2025
Signed-off-by: Christopher Hakkaart <[email protected]>
Signed-off-by: Chris Hakkaart <[email protected]>
Co-authored-by: Ben Sherman <[email protected]>
Signed-off-by: Jonathan Manning <[email protected]>
@christopher-hakkaart christopher-hakkaart deleted the docs-copy branch March 13, 2025 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants