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

chore(docs): include additionalLanguages for Prism #14636

Merged
merged 1 commit into from
Oct 23, 2023
Merged

chore(docs): include additionalLanguages for Prism #14636

merged 1 commit into from
Oct 23, 2023

Conversation

mrazauskas
Copy link
Contributor

Following up #14629

Summary

Docusaurus upgrade guide is mentioning that new version of react-prism-render does not include as many languages as before. It suggested adding those via config: https://docusaurus.io/docs/next/migration/v3#prism-react-renderer-v20

Currently missing highlighting can be seen in Getting Start page (bash, json) and upgrading guide page (diff).

Test plan

Deploy preview.

@netlify
Copy link

netlify bot commented Oct 23, 2023

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit fd9ffc3
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/65360c99e6ee7f0007f2993b
😎 Deploy Preview https://deploy-preview-14636--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

"@docusaurus/plugin-client-redirects": "3.0.0-rc.0",
"@docusaurus/plugin-pwa": "3.0.0-rc.0",
"@docusaurus/preset-classic": "3.0.0-rc.0",
"@docusaurus/remark-plugin-npm2yarn": "3.0.0-rc.0",
"clsx": "^2.0.0",
"docusaurus-remark-plugin-tab-blocks": "^2.0.0-rc.0",
"prism-react-renderer": "^2.1.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Used here:

const {themes} = require('prism-react-renderer');

"@docusaurus/core": "^3.0.0-beta.0",
"@docusaurus/core": "3.0.0-rc.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Or was it left like this on purpose?

Copy link
Member

Choose a reason for hiding this comment

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

not on purpose 👍

@SimenB SimenB merged commit e7280a2 into jestjs:main Oct 23, 2023
59 of 60 checks passed
@mrazauskas mrazauskas deleted the website-include-additional-languages branch October 23, 2023 08:34
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants