Repository navigation
docs(onboarding): normalize inline Info callout to block form - #94510
ZengWen-DT wants to merge 1 commit into
Conversation
The inline single-line <Info>This step is optional</Info> is the only inline JSX callout in the docs. On the deployed site its multibyte translated content renders as mojibake (reported on the zh-CN page), while every other callout uses the block form and renders correctly. Normalize this callout to the conventional block form. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Codex review: needs maintainer review before merge. Reviewed June 25, 2026, 4:52 AM ET / 08:52 UTC. Summary PR surface: Docs +2. Total +2 across 1 file. Reproducibility: yes. Current main and v2026.6.10 still contain the inline Info callout at docs/start/onboarding.md:82, and the linked issue plus live-page/source evidence tie that source shape to the zh-CN mojibake symptom. Review metrics: none identified. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land this block-form Info patch as the canonical source-doc fix if maintainers want to preserve callout styling, then verify the public zh-CN onboarding page after docs deployment and close the linked issue plus duplicate PRs. Do we have a high-confidence way to reproduce the issue? Yes. Current main and v2026.6.10 still contain the inline Info callout at docs/start/onboarding.md:82, and the linked issue plus live-page/source evidence tie that source shape to the zh-CN mojibake symptom. Is this the best way to solve the issue? Yes for the narrow page-specific fix. The block-form Info change preserves the callout UI better than the italic-text workaround while removing the inline component shape implicated by the report. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 33d7a2a3f714. Label changesLabel justifications:
Evidence reviewedPR surface: Docs +2. Total +2 across 1 file. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
Summary
Info□^8□ □□□□3□K□D□□while every other Chinese string on the page renders correctly.docs/start/onboarding.mdwas the only source doc using the inline single-line<Info>This step is optional</Info>form; every other callout indocs/**uses the block form. Normalizes this one to the block form.Linked context
Closes #94504
Real behavior proof
Info□^8□ □□□□3□K□D□□) while the surrounding Chinese renders correctly. Still reproducible on https://docs.openclaw.ai/zh-CN/start/onboarding today (2026-06-18).docs.openclaw.ai/zh-CN/start/onboarding) in a desktop browser plus the raw payload it ships, the same site's quickstart page as a block-form control, and the local source checkout. I could not rerun the downstreamopenclaw/docstranslation/deploy pipeline, so I have no post-deploy screenshot of this page after the fix.<Info>此步骤为可选</Info>— yet the browser renders that node as garble. The only structural difference between this broken callout and every callout that renders fine is inline-vs-block: this page held the single inline<Info>...</Info>in all ofdocs/**. A block-form<Info>carrying Chinese renders cleanly on the same live site (quickstart shows快速开始现已并入…).Info□^8□ □□□□3□K□D□□. The shipped bytes confirm the source feeding that render is clean UTF-8:So the source is byte-correct; the corruption happens when Mintlify renders the inline JSX callout with multibyte children.
git diff --numstat HEAD~1..HEAD,grep -rnE '<Info>[^<]+</Info>' docs --include='*.md' --include='*.mdx',git diff --check HEAD~1..HEAD.docs/**; no inline single-line Info callout remains in the source, so the one source shape that reproduces the render-time garble is gone.openclaw/docstranslation + Mintlify deploy, so I have no screenshot of this specific page rendering clean after the change. The block-form control (quickstart) renders Chinese cleanly on the live site, which is the closest available after-signal.Tests and validation
git diff --check HEAD~1..HEADgrep -rnE '<Info>[^<]+</Info>' docs --include='*.md' --include='*.mdx'(no inline callouts remain)Risk checklist
Did user-visible behavior change?
Yes(docs render shape only — inline callout becomes block callout)Did config, environment, or migration behavior change?
NoDid security, auth, secrets, network, or tool execution behavior change?
NoHighest-risk area: the single Info callout's MDX shape.
How is that risk mitigated? It now matches the block form used by every other callout in
docs/**; the diff is +3/-1 and touches nothing else.Current review state: maintainer review and CI. A maintainer with docs-deploy access is the only one who can confirm the live zh-CN render after re-deploy, since the deployed "after" is downstream of merge.
AI-assisted (Claude Code). Proof above was run manually.