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

doc: update hljs with the latest styles #52911

Merged
merged 2 commits into from
May 13, 2024

Conversation

RedYetiDev
Copy link
Member

@RedYetiDev RedYetiDev commented May 8, 2024

This PR updates the hljs.css styling to use the latest styles (from the VSCode theme builtin to Highlight.js)

Dark:
image
Light:
image

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/nodejs-website

@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to the documentations. label May 8, 2024
@RedYetiDev
Copy link
Member Author

RedYetiDev commented May 8, 2024

@ovflowd I know you and that team are updating the docs, just want to make sure this wouldn't break anything

Copy link
Member

@AugustinMauroy AugustinMauroy left a comment

Choose a reason for hiding this comment

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

LGTM !

@RedYetiDev RedYetiDev added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 9, 2024
Copy link
Contributor

@aduh95 aduh95 left a comment

Choose a reason for hiding this comment

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

Can you add the missing semicolons? I don't really like this approach, I'd prefer much more using variables

doc/api_assets/hljs.css Outdated Show resolved Hide resolved
doc/api_assets/hljs.css Outdated Show resolved Hide resolved
@RedYetiDev RedYetiDev removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 10, 2024
@RedYetiDev
Copy link
Member Author

(removing author-ready, as @aduh95 left comments without approval)

I've made the requested changes in regards to the semicolons. I don't think variables will be effective here, as these stylings are from hljs and if they change in the future, it may be tedious to change each variable

@ovflowd
Copy link
Member

ovflowd commented May 10, 2024

Just a FYI we're moving away from Highlight.js very soon to Shiki, so I honestly would recommend you to avoid spending calories on any API Docs-related changes... in general, as all these styles will be discarded.

@ovflowd ovflowd added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels May 13, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 13, 2024
@nodejs-github-bot nodejs-github-bot merged commit 29884d1 into nodejs:main May 13, 2024
20 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 29884d1

targos pushed a commit that referenced this pull request May 15, 2024
PR-URL: #52911
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Claudio Wunder <[email protected]>
marco-ippolito pushed a commit that referenced this pull request Jun 17, 2024
PR-URL: #52911
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Claudio Wunder <[email protected]>
marco-ippolito pushed a commit that referenced this pull request Jun 17, 2024
PR-URL: #52911
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Claudio Wunder <[email protected]>
marco-ippolito pushed a commit that referenced this pull request Jun 17, 2024
PR-URL: #52911
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Claudio Wunder <[email protected]>
EliphazBouye pushed a commit to EliphazBouye/node that referenced this pull request Jun 20, 2024
PR-URL: nodejs#52911
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Claudio Wunder <[email protected]>
bmeck pushed a commit to bmeck/node that referenced this pull request Jun 22, 2024
PR-URL: nodejs#52911
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Claudio Wunder <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. doc Issues and PRs related to the documentations.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants