-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Lexical][Meta] Add meta intern static docs config #32
base: cloned_main_93d81
Are you sure you want to change the base?
[Lexical][Meta] Add meta intern static docs config #32
Conversation
Clone of the PR facebook/lexical#6302 |
My review is in progress 📖 - I will have feedback for you in a few minutes! |
WalkthroughThe recent updates encompass documentation enhancements, formatting adjustments for clarity, and structural changes in Docusaurus configurations. Key modifications include improved comment syntax in utility functions, streamlined error code documentation, and a transition to a more specialized preset for the website. These changes aim to enhance clarity, maintain compliance with standards, and optimize the overall organization of the project without altering its core functionality. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant ErrorCodePage
participant OssOnly
User->>OssOnly: Request error code information
OssOnly->>ErrorCodePage: Render content for authorized user
ErrorCodePage-->>User: Display error code details
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reviewed your code and did not find any issues!
Please note that I can make mistakes, and you should still encourage your team to review your code as well.
/review |
PR Reviewer Guide 🔍(Review updated until commit 6bb94a9)
|
Persistent review updated to latest commit 6bb94a9 |
@coderabbitai review |
Actions performedReview triggered.
|
@coderabbitai review |
Actions performedReview triggered.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
package-lock.json
is excluded by!**/package-lock.json
Files selected for processing (8)
- packages/lexical-selection/src/lexical-node.ts (1 hunks)
- packages/lexical-utils/src/index.ts (2 hunks)
- packages/lexical-website/docs/concepts/serialization.md (1 hunks)
- packages/lexical-website/docs/error.md (1 hunks)
- packages/lexical-website/docs/getting-started/devtools.md (1 hunks)
- packages/lexical-website/docusaurus.config.js (3 hunks)
- packages/lexical-website/package.json (1 hunks)
- packages/lexical-website/src/components/ErrorCodePage.js (1 hunks)
Files skipped from review due to trivial changes (5)
- packages/lexical-selection/src/lexical-node.ts
- packages/lexical-utils/src/index.ts
- packages/lexical-website/docs/concepts/serialization.md
- packages/lexical-website/docs/error.md
- packages/lexical-website/src/components/ErrorCodePage.js
Additional context used
Markdownlint
packages/lexical-website/docs/getting-started/devtools.md
17-17: null
Images should have alternate text (alt text)(MD045, no-alt-text)
20-20: null
Images should have alternate text (alt text)(MD045, no-alt-text)
22-22: null
Images should have alternate text (alt text)(MD045, no-alt-text)
24-24: null
Images should have alternate text (alt text)(MD045, no-alt-text)
Additional comments not posted (3)
packages/lexical-website/package.json (1)
31-31
: Verify compatibility with the updated plugin version.The
docusaurus-plugin-internaldocs-fb
has been updated from1.9.1
to1.18.2
. Ensure that the new version is compatible with your current setup and does not introduce any breaking changes.packages/lexical-website/docs/getting-started/devtools.md (1)
24-24
: Add alt text to the image.The
<img>
tag is missing alt text, which is important for accessibility.- [<img src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/74.1.0/safari/safari.svg" width="48" alt="Safari logo" valign="middle"/>][link-safari] + [<img src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/74.1.0/safari/safari.svg" width="48" alt="Safari logo" valign="middle"/>][link-safari]Likely invalid or redundant comment.
Tools
Markdownlint
24-24: null
Images should have alternate text (alt text)(MD045, no-alt-text)
packages/lexical-website/docusaurus.config.js (1)
Line range hint
267-288
:
Verify the new preset's configuration and impact.The preset has been changed to
require.resolve('docusaurus-plugin-internaldocs-fb/docusaurus-preset')
. Ensure that this new configuration aligns with your documentation needs and check for any potential issues.Verification successful
Verification Successful: New Preset Configuration is Correct
The
docusaurus-plugin-internaldocs-fb
package is installed and configured correctly in thedocusaurus.config.js
file. No issues or misconfigurations were found in the setup. Ensure to test the documentation site to confirm the expected behavior.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the new preset configuration and its impact on the documentation setup. # Test: Check if the new preset is correctly configured and does not introduce any issues. # Expect: No errors or misconfigurations. grep -A 10 'docusaurus-plugin-internaldocs-fb/docusaurus-preset' packages/lexical-website/docusaurus.config.jsLength of output: 620
Script:
#!/bin/bash # Check if the 'docusaurus-plugin-internaldocs-fb' package is installed in the project. grep -r 'docusaurus-plugin-internaldocs-fb' package.json # Search for any documentation or compatibility issues related to 'docusaurus-plugin-internaldocs-fb'. rg 'docusaurus-plugin-internaldocs-fb' -A 5Length of output: 52104
@@ -14,18 +14,18 @@ The easiest way to debug websites built with Lexical is to install the Lexical D | |||
[link-firefox]: https://addons.mozilla.org/en-US/firefox/addon/lexical-developer-tools/ 'Version published on Mozilla Add-ons' | |||
[link-safari]: https://apps.apple.com/us/app/lexical-developer-tools/id6502753400 'Version published on Mac App Store' | |||
|
|||
[<img src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/74.1.0/chrome/chrome.svg" width="48" alt="Chrome" valign="middle">][link-chrome] [<img valign="middle" src="https://img.shields.io/chrome-web-store/v/kgljmdocanfjckcgfpcpdoklodllfdpc?style=flat&label=%20 | |||
">][link-chrome] | |||
[<img src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/74.1.0/chrome/chrome.svg" width="48" alt="Chrome" valign="middle"/>][link-chrome] [<img valign="middle" src="https://img.shields.io/chrome-web-store/v/kgljmdocanfjckcgfpcpdoklodllfdpc?style=flat&label=%20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add alt text to the image.
The <img>
tag is missing alt text, which is important for accessibility.
- [<img src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/74.1.0/chrome/chrome.svg" width="48" alt="Chrome" valign="middle"/>][link-chrome]
+ [<img src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/74.1.0/chrome/chrome.svg" width="48" alt="Chrome logo" valign="middle"/>][link-chrome]
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
[<img src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/74.1.0/chrome/chrome.svg" width="48" alt="Chrome" valign="middle"/>][link-chrome] [<img valign="middle" src="https://img.shields.io/chrome-web-store/v/kgljmdocanfjckcgfpcpdoklodllfdpc?style=flat&label=%20 | |
[<img src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/74.1.0/chrome/chrome.svg" width="48" alt="Chrome logo" valign="middle"/>][link-chrome] [<img valign="middle" src="https://img.shields.io/chrome-web-store/v/kgljmdocanfjckcgfpcpdoklodllfdpc?style=flat&label=%20 |
Tools
Markdownlint
17-17: null
Images should have alternate text (alt text)(MD045, no-alt-text)
|
||
[<img src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/74.1.0/firefox/firefox.svg" width="48" alt="Firefox" valign="middle">][link-firefox] [<img valign="middle" src="https://img.shields.io/amo/v/lexical-developer-tools.svg?label=%20">][link-firefox] | ||
[<img src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/74.1.0/firefox/firefox.svg" width="48" alt="Firefox" valign="middle"/>][link-firefox] [<img valign="middle" src="https://img.shields.io/amo/v/lexical-developer-tools.svg?label=%20"/>][link-firefox] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add alt text to the image.
The <img>
tag is missing alt text, which is important for accessibility.
- [<img valign="middle" src="https://img.shields.io/amo/v/lexical-developer-tools.svg?label=%20"/>][link-firefox]
+ [<img valign="middle" src="https://img.shields.io/amo/v/lexical-developer-tools.svg?label=%20" alt="Firefox version badge"/>][link-firefox]
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
[<img src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/74.1.0/firefox/firefox.svg" width="48" alt="Firefox" valign="middle"/>][link-firefox] [<img valign="middle" src="https://img.shields.io/amo/v/lexical-developer-tools.svg?label=%20"/>][link-firefox] | |
[<img src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/74.1.0/firefox/firefox.svg" width="48" alt="Firefox" valign="middle"/>][link-firefox] [<img valign="middle" src="https://img.shields.io/amo/v/lexical-developer-tools.svg?label=%20" alt="Firefox version badge"/>][link-firefox] |
Tools
Markdownlint
22-22: null
Images should have alternate text (alt text)(MD045, no-alt-text)
|
||
[<img src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/74.1.0/edge/edge.svg" width="48" alt="Edge" valign="middle">][link-edge] [<img valign="middle" src="https://img.shields.io/badge/dynamic/json?label=%20&query=%24.version&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Fpclbkaofdgafcfhlnimcdhhkkhcabpcb">][link-edge] | ||
[<img src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/74.1.0/edge/edge.svg" width="48" alt="Edge" valign="middle"/>][link-edge] [<img valign="middle" src="https://img.shields.io/badge/dynamic/json?label=%20&query=%24.version&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Fpclbkaofdgafcfhlnimcdhhkkhcabpcb"/>][link-edge] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add alt text to the image.
The <img>
tag is missing alt text, which is important for accessibility.
- [<img valign="middle" src="https://img.shields.io/badge/dynamic/json?label=%20&query=%24.version&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Fpclbkaofdgafcfhlnimcdhhkkhcabpcb"/>][link-edge]
+ [<img valign="middle" src="https://img.shields.io/badge/dynamic/json?label=%20&query=%24.version&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Fpclbkaofdgafcfhlnimcdhhkkhcabpcb" alt="Edge version badge"/>][link-edge]
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
[<img src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/74.1.0/edge/edge.svg" width="48" alt="Edge" valign="middle"/>][link-edge] [<img valign="middle" src="https://img.shields.io/badge/dynamic/json?label=%20&query=%24.version&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Fpclbkaofdgafcfhlnimcdhhkkhcabpcb"/>][link-edge] | |
[<img src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/74.1.0/edge/edge.svg" width="48" alt="Edge" valign="middle"/>][link-edge] [<img valign="middle" src="https://img.shields.io/badge/dynamic/json?label=%20&query=%24.version&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Fpclbkaofdgafcfhlnimcdhhkkhcabpcb" alt="Edge version badge"/>][link-edge] |
Tools
Markdownlint
20-20: null
Images should have alternate text (alt text)(MD045, no-alt-text)
WHAT
WHY
Description by Korbit AI
What change is being made?
Add meta intern static docs configuration and update various documentation files to fix formatting issues and improve clarity.
Why are these changes being made?
These changes are necessary to ensure the documentation is correctly formatted and up-to-date, improving readability and usability for developers. The updates also include configuration adjustments to better support internal documentation processes.
Summary by CodeRabbit
Documentation
Chores