Skip to content

fix(docs): stop trade-push SDKLinks from rendering a "false" heading - #1347

Merged
twosugar merged 1 commit into
mainfrom
fix/trade-push-sdklinks-title
Nov 24, 2026
Merged

twosugar merged 1 commit into
mainfrom
fix/trade-push-sdklinks-title

Conversation

@twosugar

Copy link
Copy Markdown
Collaborator

Merge Verdict

[APPROVE]

3 files · +12 / -12 · docs-only, no code change

Summary

/docs/trade/trade-push shows four <h2>false</h2> headings in every locale (visible in production today). The page uses the VitePress prop syntax <SDKLinks :title="false" … />; the MDX preprocessor in astro.config.ts (step 6) strips the leading :, so SDKLinks receives the string "false" and renders it as a heading.

This PR switches the 12 occurrences (4 per locale in docs/{en,zh-CN,zh-HK}/docs/trade/trade-push.mdx) to the JSX boolean title={false}. No other page uses :title=.

Risk Analysis

Risk Level Mitigation
SDK links on the page disappear Low Only the title prop changes; built output still has all 4 link sets per locale
Markdown export (.md) changes Low src/lib/markdown-export.ts already parses title={false}; built .md keeps the 4 SDK method blocks without a heading

Design Decisions

  • Fixed the source pages rather than making SDKLinks treat the string "false" as falsy: the string is a preprocessing artefact, and these are the only remaining uses of the Vue-style prop.

Code Concerns

None.

Verification

Conclusion basis: Verified

  • bun run build:release succeeded. For en / zh-CN / zh-HK trade-push.html: <h2>false</h2> count 0 (production: 4), 4 SDK link sets present, no stray "SDK Links" heading. trade-push.md: no false heading, 4 SDK method blocks.
  • Opened the built page in a browser (astro preview): the h2 list is Example, Subscribe, Cancel Subscribe, Push Notification, Grid Order Changes; "Subscribe" is followed directly by the six SDK links.

🤖 Generated with Claude Code

The four `<SDKLinks :title="false" … />` per locale are VitePress syntax. The
MDX preprocessor strips the leading `:`, leaving the string `"false"`, which
SDKLinks renders as an `<h2>false</h2>`. Use the JSX boolean `title={false}`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@twosugar
twosugar merged commit 2465348 into main Nov 24, 2026
2 checks passed
@twosugar
twosugar deleted the fix/trade-push-sdklinks-title branch November 24, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant