FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

doc: change color of doctag on night mode by Ayase-252 · Pull Request #38652 · nodejs/node · GitHub

/ node Public

doc: change color of doctag on night mode - #38652

Closed
Ayase-252 wants to merge 1 commit into
nodejs:masterfrom
Ayase-252:fix/doc/39641-syntax-highlight
Closed

doc: change color of doctag on night mode#38652
Ayase-252 wants to merge 1 commit into
nodejs:masterfrom
Ayase-252:fix/doc/39641-syntax-highlight

Conversation

Copy link
Copy Markdown
Member

Demo:

Fixes: #38641

github-actions Bot added the doc Issues and PRs related to the documentations. label May 12, 2021

DerekNonGeneric left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Sweet!

Thanks, you can do .hljs-type if you want to too, but that would also need the light-mode styles too, so probably not in this PR.

/cc @nodejs/documentation as an FYI

Copy link
Copy Markdown
Member Author

@DerekNonGeneric

I think it is a great idea. I will open other PR to adjust .hljs-type.

DerekNonGeneric commented May 12, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

@Ayase-252, that sounds like a good idea! Pick a nice color for .hljs-type please.

It should be distinguishable from the JSDoc tag (not the same color). Thanks in advance. :)

DerekNonGeneric commented May 12, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

/to @Ayase-252 check out what GitHub has done here.

They are like whitish or something in the dark mode, so you may not want to diverge too far from that.

That is a gist in darkmode, so check it for yourself.

Ayase-252 commented May 12, 2021
edited
Loading

Copy link
Copy Markdown
Member Author

@DerekNonGeneric

OK, will check.

Looks like Github uses same color of variable to .hljs-type. Let's do the same to see how it looks in Node.js doc.

DerekNonGeneric commented May 12, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

@Ayase-252, they use a different syntax highlighter (and it is broken as you can see).

It is probably best to hold off on making the PR if this is challenging, but I will keep you posted if I make any progress.

Copy link
Copy Markdown
Member Author

@DerekNonGeneric
OK, I have just noticed some tiny "edge case" around multi-line type annotation (see * is somehow white), after making a couple of changes.

FYI, vscode seems do the job right.

I think this PR is free from the minor issue.

jasnell commented May 14, 2021

Copy link
Copy Markdown
Member

Landed in 67ecd05

jasnell closed this May 14, 2021
jasnell pushed a commit that referenced this pull request May 14, 2021
Fixes: #38641

PR-URL: #38652
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request May 17, 2021
Fixes: #38641

PR-URL: #38652
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request May 30, 2021
Fixes: #38641

PR-URL: #38652
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request Jun 5, 2021
Fixes: #38641

PR-URL: #38652
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request Jun 5, 2021
Fixes: #38641

PR-URL: #38652
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request Jun 11, 2021
Fixes: #38641

PR-URL: #38652
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. doc Issues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doc: syntax-highlighted JSDoc comments in dark mode are low-visibility

9 participants


Back | FazBrowse Home | New Git URL