-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
docs: add copy button for the site #18855
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for docs-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hi @gweesin, thanks for PR, but right now CI is failing, could you fix that? |
sure, it seems this is a lint problem, but now I can't run the trunk command. So you can see lots of format commits manually. I will research it later. |
anybody can help? PS D:\opensource\eslint> trunk
node:internal/deps/undici/undici:13185
Error.captureStackTrace(err);
^
TypeError: fetch failed
at node:internal/deps/undici/undici:13185:13
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
[cause]: Error: read ECONNRESET
at TLSWrap.onStreamRead (node:internal/stream_base_commons:218:20) {
errno: -4077,
code: 'ECONNRESET',
syscall: 'read'
}
}
Node.js v22.8.0 |
Seems like a network issue |
i guess recommended command is |
Yes, the error caused by fetch https://trunk.io/releases/1.22.3/trunk-1.22.3.mingw.tar.gz but my network really connect it successfully: Hoping another collaborator can help me run the command |
@nzakas Thanks for your review. button's icon disapeers in light mode seems a bug. shouldn't display in code block for validation demo is the good user experience. I will fix for all of advertisements. Thanks a lot. |
@det is on the case - working with reporter to understand why |
Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update. |
Hi @gweesin, there are some suggestions, you can check them out :). |
Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update. |
@gweesin Just a gentle reminder: there’s some feedback that I'd appreciate you taking a look at. If you're busy, please let us know, and I can handle it from here. Additionally, I’ve addressed the lint issue for now and pushed the changes from my end. |
Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update. |
Since it has been pending for a long time I will take over the pr complete the remaining changes. |
Thanks! I'm sorry I have no time to fix it recently. Also puzzled by running trunk command. |
@gweesin has someone reached out to you to discuss your issues with Trunk? |
Chris Clearwater told me upgrade the trunk launcher package to version 1.3.2 on Slack, but nothing changed. And then the communication was stopped. |
Okay, I'll reach out to them and see if we can get you some help. |
I'm sorry for resolving this issue so late. Here is my solution for the trunk installation:
It would be better if Trunk could support reading the download mirror from environment variables. I will continue working on this PR. |
9d8ed2d
to
282069c
Compare
@gweesin thanks for the update, and glad you got things working. Do you want to finish up this PR? |
171578b
to
abc0593
Compare
I have rebased the branch and fixed the bugs you mentioned. However, I couldn't reproduce this particular issue. It seems to be a temporary compilation state during development. Thank you for your review! We're now ready to revisit the code for further review. |
I've tested in both Firefox and Edge, and I'm still seeing the button without an icon. I'm using the deploy preview: |
efe3242
to
67791e3
Compare
|
||
[class*="language-"] > .c-btn--copy:hover, | ||
[class*="language-"] > .c-btn--copy.copied { | ||
opacity: 0.8; |
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.
The semi-transparency is a problem when the button overlaps text, making it harder to see the button on hover.
What do you think about doing a box-shadow on hover instead?
At least on my screen, I don't see anything in dark mode and light mode is also difficult to see. Maybe we should just go with a glow effect using box-shadow? So something along the lines of |
closed #18769
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
[X] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:
What changes did you make? (Give an overview)
add a copy button for each code blocks
Is there anything you'd like reviewers to focus on?
can we make the style better match the current website theme?