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

tools: fix highlight.js and without-intl compatibility #41086

Closed
wants to merge 2 commits into from

Conversation

Trott
Copy link
Member

@Trott Trott commented Dec 4, 2021

Fixes: #41077

@Trott Trott requested review from richardlau and targos December 4, 2021 17:04
@Trott Trott added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 4, 2021
@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. tools Issues and PRs related to the tools directory. labels Dec 4, 2021
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 4, 2021
@nodejs-github-bot

This comment has been minimized.

@Trott Trott added the commit-queue-rebase Add this label to allow the Commit Queue to land a PR in several commits. label Dec 4, 2021
@Trott Trott force-pushed the fix-highlight-icu branch from c45968b to 844aaf4 Compare December 4, 2021 18:14
@nodejs-github-bot

This comment has been minimized.

@Trott
Copy link
Member Author

Trott commented Dec 4, 2021

OK, this is now fixed and running in CI.

@nodejs-github-bot

This comment has been minimized.

@richardlau
Copy link
Member

The message from the first commit should be reworded -- we were not loading/registering the languages until this PR.

Trott added 2 commits December 4, 2021 12:04
Importing everything from highlight.js won't work in without-intl
builds. Import only core and register only the languages we need.

Fixes: nodejs#41077
@Trott Trott force-pushed the fix-highlight-icu branch from 844aaf4 to 4613506 Compare December 4, 2021 20:05
@Trott
Copy link
Member Author

Trott commented Dec 4, 2021

The message from the first commit should be reworded -- we were not loading/registering the languages until this PR.

Thanks. I reworded it.

@nodejs-github-bot

This comment has been minimized.

@Trott Trott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Dec 4, 2021
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot
Copy link
Collaborator

@targos
Copy link
Member

targos commented Dec 5, 2021

I won't block this because the work was already done, but in my opinion, we are not supposed to make every supported build option work with everything. Building the Node.js docs is certainly not a use case for the build without Intl.

@Trott
Copy link
Member Author

Trott commented Dec 5, 2021

I won't block this because the work was already done, but in my opinion, we are not supposed to make every supported build option work with everything. Building the Node.js docs is certainly not a use case for the build without Intl.

You might prefer #41091.

@Trott
Copy link
Member Author

Trott commented Dec 6, 2021

This is theoretically ready to land but I suspect #41091 is the preferred solution, so I'll put this in draft mode for now. I'll close it if #41091 lands. If #41091 stalls for some reason, I'll put this back to "ready for review".

@Trott Trott marked this pull request as draft December 6, 2021 21:31
@Trott Trott removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Dec 6, 2021
@Trott
Copy link
Member Author

Trott commented Dec 7, 2021

#41091 landed instead, so closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commit-queue-rebase Add this label to allow the Commit Queue to land a PR in several commits. doc Issues and PRs related to the documentations. tools Issues and PRs related to the tools directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

doc build problem in withoutintl builds
7 participants