-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[Ray Serve] Copy and paste code snippet also copies line numbers #40936
Comments
This is a known problem. The workaround is to turn off line numbers, but in these cases the line numbers are needed to refer to specific lines of code in the docs. This is a docs infrastructure/tooling issue. @peytondmurray, do you have any ideas on how to fix this? |
I was never able to reproduce this issue on my local machines, and I expect it to depend on what browser and what version you're using. There are CSS styles which control the selectability of elements, but they're browser-dependent. Even forcibly overriding the styles of the |
I can spend a little time digging into |
This issue is slightly different from #39652, which is doing a copy and paste. @MattEWeber is able to reproduce this one, which uses the "copy" button, but not #39652. I suggest we keep both open as they seem to be different mechanisms. |
Description
On this page https://docs.ray.io/en/latest/serve/model_composition.html
When I click the "copy" button in the upper right corner of the code snippet, it copies all of the line numbers (which prevents the example from working).
This is what it looks like after pasting the code into an editor (the line numbers should not be pasted).
This is probably a problem in multiple places in our documentation, not just here.
Link
No response
The text was updated successfully, but these errors were encountered: