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

fix(theme-common): code block magic comments should support SQL block comments #10782

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

WillBlack403
Copy link
Contributor

@WillBlack403 WillBlack403 commented Dec 19, 2024

Pre-flight checklist

  • [ x] I have read the Contributing Guidelines on pull requests.
  • If this is a code change: I have written unit tests and/or added dogfooding pages to fully verify the new behavior.
  • If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

Motivation

Code block magic comments should support SQL block comments /* comment */

Test Plan

Dogfood / preview

Test links

https://deploy-preview-10782--docusaurus-2.netlify.app/tests/pages/code-block-tests#magic-comments-tests

Related issues/PRs

Fix #10748

Add jsBlock comment style to sql code block.
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Dec 19, 2024
Copy link

netlify bot commented Dec 19, 2024

[V2]

Built without sensitive environment variables

Name Link
🔨 Latest commit 30a7f46
🔍 Latest deploy log https://app.netlify.com/sites/docusaurus-2/deploys/6765948cb5b28300085479af
😎 Deploy Preview https://deploy-preview-10782--docusaurus-2.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.

Copy link

github-actions bot commented Dec 19, 2024

⚡️ Lighthouse report for the deploy preview of this PR

URL Performance Accessibility Best Practices SEO Report
/ 🟠 71 🟢 98 🟢 96 🟢 100 Report
/docs/installation 🟠 54 🟢 97 🟢 100 🟢 100 Report
/docs/category/getting-started 🟠 73 🟢 100 🟢 100 🟠 86 Report
/blog 🟠 64 🟢 96 🟢 100 🟠 86 Report
/blog/preparing-your-site-for-docusaurus-v3 🔴 48 🟢 92 🟢 100 🟢 100 Report
/blog/tags/release 🟠 64 🟢 96 🟢 100 🟠 86 Report
/blog/tags 🟠 75 🟢 100 🟢 100 🟠 86 Report

@WillBlack403 WillBlack403 marked this pull request as ready for review December 20, 2024 05:24
Copy link
Collaborator

@slorber slorber left a comment

Choose a reason for hiding this comment

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

That looks fine but I have no easy way to review

Can you add a dogfood test in docusaurus/website/_dogfooding/_pages tests/code-block-tests.mdx ?

https://docusaurus.io/tests/pages/code-block-tests#magic-comments-tests

@WillBlack403
Copy link
Contributor Author

Thanks for the input, I will update tests.

Copy link
Collaborator

@slorber slorber left a comment

Choose a reason for hiding this comment

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

@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Dec 20, 2024
@slorber slorber changed the title fix(theme-common): SQL magic block comments. fix(theme-common): code block magic comments should support SQL block comments Dec 20, 2024
@slorber slorber merged commit 2565601 into facebook:main Dec 20, 2024
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SQL block does not support block magic comments
3 participants