fix(docs): resolve MDX parsing error in installation tabs#2290
fix(docs): resolve MDX parsing error in installation tabs#2290dushyant-hada-90 wants to merge 1 commit into
Conversation
Triage Notes — Confirmed ✅Bug verified on Root cause matches the description — introduced when the fences were collapsed to single lines. The Fix is correct and surgical:
Reviewed by AO (automated triage). Ready for maintainer approval/merge. |
Update — Website is being redone 🚧Heads up @dushyant-hada-90 — thanks for the triage and the fix! However, the website is currently being fully redone, so PRs to the existing website (including this docs page) won't be accepted at this time. Once the website redo is complete, you'll be able to contribute directly to the new site. In the meantime, if you'd like to help with the website effort, please contact shiawase22 on discord to know how you can contribute to the rewrite — she'll guide you on how to get involved. Appreciate the contribution! 🙏 |
Description
This PR fixes a critical MDX compilation error (Expected a closing tag for ) that causes a 500 server error on the Installation documentation page.
Root Cause:
The bug was inadvertently introduced in commit 5982051. The bash commands inside the "from source" component were placed on a single line. This formatting caused the underlying Markdown parser to misinterpret the closing backticks (```), which subsequently swallowed the closing JSX tag and broke the page build. Additionally, the bash commands were chained with spaces instead of newlines or && operators, causing terminal execution failures.
Changes Made:
Reformatted the MDX code blocks across all tabs so that the opening and closing code fences (```) are placed on their own distinct lines, satisfying the strict MDX parser requirements.
Separated the chained bash commands (cd, pnpm install, pnpm build, etc.) in the "from source" tab onto individual lines to ensure they execute sequentially and correctly in the user's terminal.
Testing:
Verified locally that the docs page now compiles successfully without the Fast Refresh/Webpack serialization errors.