Repository navigation
fix(docs): replace Info callout inside Step to fix Chinese encoding garbled text - #94880
LeonidasLux wants to merge 1 commit into
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close: this PR is a plausible narrow workaround, but it duplicates the same source-line fix now better owned by #94510, which preserves the intended Info callout UI, is open, mergeable, maintainer-modifiable, directly closes the user report, and has stronger issue-specific proof. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Use #94510 as the canonical landing path, verify the generated zh-CN onboarding page after the docs publish pipeline runs, then close the duplicate workaround PRs and the linked user report. So I’m closing this here and keeping the remaining discussion on #94510. Review detailsBest possible solution: Use #94510 as the canonical landing path, verify the generated zh-CN onboarding page after the docs publish pipeline runs, then close the duplicate workaround PRs and the linked user report. Do we have a high-confidence way to reproduce the issue? Yes. Current main and v2026.6.9 still contain the inline Info-in-Step source line, and the live zh-CN docs page still renders that callout with corrupted Info markup while block-form Info elsewhere renders normally. Is this the best way to solve the issue? No. Italic Markdown avoids the bad inline MDX shape, but the block-form Info fix in #94510 is the better solution because it preserves the intended callout UI while removing the inline component shape. Security review: Security review cleared: The diff changes one Markdown docs line and does not touch executable code, workflows, dependencies, lockfiles, secrets, permissions, or supply-chain surfaces. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against a1828110704f. |
Summary
Fix Chinese character encoding garbled text on
/zh-CN/start/onboardingpage caused by<Info>Mintlify MDX callout component rendering incorrectly when nested inside a<Step>component.The
<Info>callout renders correctly at the top level (e.g.,/zh-CN/start/quickstart) but gets garbled when inside<Step>(which renders as<li>): the CSS class gets a corrupted hash suffix (oc-callout-info-8-3-k-dinstead ofoc-callout-info) and the<strong>tag contains binary control characters instead of text.Root cause:
<Info>component nested inside<Step>(rendered as<li>) triggers a Mintlify MDX processor bug that corrupts the HTML output. The Mintlify MDX pipeline applies CSS class hashing and component transformation that fails when callout components are inside list item (<li>) elements generated by<Step>.Fix: Replace the
<Info>callout with Markdown italic*This step is optional.*which is semantically equivalent (both indicate the step is optional) and renders correctly inside<Step>.Fixes #94504
Linked context
<Step>Real behavior proof (required for external PRs)
Behavior addressed: On
https://docs.openclaw.ai/zh-CN/start/onboarding, the CLI step's<Info>callout rendered with garbled characters:The corrupted CSS class and binary control characters in the
<strong>tag cause the browser to render garbled Chinese text.Real setup tested:
node scripts/check-docs-mdx.mjsExact steps or command run after fix:
cd openclaw node scripts/check-docs-mdx.mjs docs/start node scripts/check-docs-mdx.mjs docsAfter-fix evidence:
All 676 documentation files pass MDX validation. The fix is a one-line source change from
<Info>This step is optional</Info>to*This step is optional.*.Observed result after the fix: The
<Info>callout is replaced with Markdown italic which renders correctly inside<Step>without triggering the Mintlify MDX processor corruption bug. The Chinese locale page/zh-CN/start/onboardingwill no longer show garbled characters in the CLI step.What was not tested: Full Mintlify build. The fix is a source-level workaround for a Mintlify MDX rendering bug; the English rendering is unaffected.
Proof limitations or environment constraints: The actual rendering can only be verified in the Mintlify production build environment. The MDX validation confirms syntactic correctness but cannot validate the Mintlify-specific component rendering pipeline.
Tests and validation
check-docs-mdx.mjs docs/start: 14/14 files passcheck-docs-mdx.mjs docs: 676/676 files pass<Info>callouts verified unaffected (they are at top level, not inside<Step>)<Info>inside<Step>patterns found in the docs treeRisk checklist
Did user-visible behavior change? Yes — the Chinese onboarding page will no longer show garbled characters in the CLI step.
Did config, environment, or migration behavior change? No
Did security, auth, secrets, network, or tool execution behavior change? No
What is the highest-risk area?
<Info>This step is optional</Info>to Markdown italic*This step is optional.*How is that risk mitigated?
<Info>callout that was inside<Step>is affectedCurrent review state
What is the next action?
What is still waiting on author, maintainer, CI, or external proof?
Which bot or reviewer comments were addressed?