-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
[Feature] [Docs] Do not copy line numbers when clicking the clipboard #21968
Comments
@shrekris-anyscale very good catch, thanks for spotting this. Should be an easy fix! |
ok, so surprisingly enough this seems to be a sphinx >= 4.0 issue, which needs to be patched in downstream themes: The RTD theme has fixed it, the book theme might not be aware yet: |
Hi, I'm a bot from the Ray team :) To help human contributors to focus on more relevant issues, I will automatically add the stale label to issues that have had no activity for more than 4 months. If there is no further activity in the 14 days, the issue will be closed!
You can always ask for help on our discussion forum or Ray's public slack channel. |
Bumping this issue to remove the stale tag. I believe line numbers still get copied with the clipboard. |
Hi, I'm a bot from the Ray team :) To help human contributors to focus on more relevant issues, I will automatically add the stale label to issues that have had no activity for more than 4 months. If there is no further activity in the 14 days, the issue will be closed!
You can always ask for help on our discussion forum or Ray's public slack channel. |
Hi again! The issue will be closed because there has been no more activity in the 14 days since the last message. Please feel free to reopen or open a new issue if you'd still like it to be addressed. Again, you can always ask for help on our discussion forum or Ray's public slack channel. Thanks again for opening the issue! |
Search before asking
Description
Docs such as this one include code snippets that can be copied by clicking a clipboard pop-up:
However, due to updates in the doc formatting, clicking this clipboard now also copies line numbers (that are inserted using
:linenos:
in the source rst documentation files). The requested feature is to allow users to click this clipboard and copy only the code, not the line numbers.Use case
This feature makes it easier to follow along coding examples in the documentation.
Related issues
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: