-
-
Notifications
You must be signed in to change notification settings - Fork 220
docs(js): add JavaScript language documentation #916
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
docs(js): add JavaScript language documentation #916
Conversation
β Deploy Preview for livecodes ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
WalkthroughAdd JavaScript language docs and integrate JavaScript metadata across UI, i18n, language specs, and SDK type definitions; add TypeScript "mts" and JavaScript "mjs" extensions. Changes are content additions plus small language-spec and model updates. Changes
Sequence Diagram(s)(omitted β changes are documentation and small metadata updates without new multi-component control-flow requiring visualization) Estimated code review effortπ― 3 (Moderate) | β±οΈ ~20 minutes Pre-merge checks and finishing touchesβ Failed checks (2 warnings)
β Passed checks (3 passed)
β¨ Finishing touches
π Recent review detailsConfiguration used: Repository UI Review profile: CHILL Plan: Pro π Files selected for processing (7)
β° Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
π Additional comments (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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: 2
π Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
π Files selected for processing (1)
docs/docs/languages/javascript.mdx(1 hunks)
β° Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: Redirect rules - livecodes
- GitHub Check: Header rules - livecodes
- GitHub Check: tests (18.x, 3)
- GitHub Check: build
- GitHub Check: tests (18.x, 4)
- GitHub Check: tests (18.x, 1)
- GitHub Check: tests (18.x, 2)
- GitHub Check: tests (18.x, 5)
- GitHub Check: build (18.x)
- GitHub Check: Pages changed - livecodes
π Additional comments (6)
docs/docs/languages/javascript.mdx (6)
7-16: Verify template naming consistency.The demo uses template name
"Javascript"(capitalized). Ensure this matches LiveCodes' actual template identifier and is consistent with the starter template URL on line 80.
18-42: Usage section is well-structured and accurate.The module loading guidance is clear, the CDN example is practical and correct, and the reference to JSX/framework extensions appropriately bridges to related language variants.
50-52: Reconsider the"node"aliasβit may create confusion.The introduction (line 5) explicitly states that LiveCodes JavaScript lacks Node.js features such as the file system. Including
"node"as an alias could mislead users into thinking Node.js code is supported. Consider whether this alias is necessary or if it should be removed for clarity.
44-68: Verify metadata format and naming conventions.The Language Info section appears complete, but without access to other language documentation files, I cannot confirm if the metadata format, naming convention (
Javascriptvs.javascript), and editor type ("script") are consistent with existing language entries. Please verify these against existing language documentation files in thedocs/docs/languages/directory.
74-76: Live Reload section is clear and accurate.The description appropriately conveys the immediate feedback benefit of automatic code reloading.
78-85: External links are authoritative and appropriate.The MDN references provide valuable supplementary resources. The starter template URL appears well-formed, assuming the template parameter
Javascriptmatches LiveCodes' configured identifier (verify alongside the demo section).
Update javascript.mdx to fix some grammatical issues
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: 1
π Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
π Files selected for processing (1)
docs/docs/languages/javascript.mdx(1 hunks)
β° Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: Redirect rules - livecodes
- GitHub Check: build
- GitHub Check: build (18.x)
- GitHub Check: tests (18.x, 2)
- GitHub Check: tests (18.x, 5)
- GitHub Check: tests (18.x, 3)
- GitHub Check: tests (18.x, 1)
- GitHub Check: tests (18.x, 4)
- GitHub Check: Header rules - livecodes
- GitHub Check: Pages changed - livecodes
π Additional comments (1)
docs/docs/languages/javascript.mdx (1)
1-85: Well-structured and comprehensive documentation.The documentation provides clear explanations, practical code examples (e.g., CDN module loading with Lodash), accurate information about browser environment vs. Node.js, and follows the expected template structure. The past spacing issues have been resolved. Links to MDN and Web APIs are appropriate. The demo component params and starter template URL are properly configured.
Fix some grammatical errors
|
|
|
Thank you @m2y11138 I have added some details for JavaScript usage in LiveCodes. |
i18n ActionsSource PR has been merged into the default branch. Maintainers can comment |
|
.i18n-update-push |
i18n Actions:
|
| Name | Description |
|---|---|
| New Branch for i18n | i18n/m2y11138/add_js_languages_docs |
| Last Commit SHA | 0d93335 |
Maintainers can comment .i18n-update-pull after translation is done to trigger the i18n pull workflow and pull the changes back to Github.
|
.i18n-update-pull |
i18n Actions:
|
| Name | Description |
|---|---|
| i18n Branch | i18n/m2y11138/add_js_languages_docs |
| Last Commit SHA | 50a8663 |
| i18n PR | #932 |



What type of PR is this? (check all applicable)
Description
This PR adds documentation for the JavaScript documentation under the supported languages section.
Includes explanations of key concepts, configuration examples, language details,
and usage snippets.
The content follows the structure and style of existing documentation
to maintain consistency across language docs.
Related Tickets & Documents
Fixes #769
Mobile & Desktop Screenshots/Recordings
No visual changes.
Added tests?
Added to documentations?
[optional] Are there any post-deployment tasks we need to perform?
None.
[optional] What gif best describes this PR or how it makes you feel?
This is my first time working on documentation. Could you give me some advice? Thank you.
Summary by CodeRabbit
βοΈ Tip: You can customize this high-level summary in your review settings.