Repository navigation
fix(docs): stop trade-push SDKLinks from rendering a "false" heading - #1347
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge Verdict
[APPROVE]
Summary
/docs/trade/trade-pushshows 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 inastro.config.ts(step 6) strips the leading:, soSDKLinksreceives 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 booleantitle={false}. No other page uses:title=.Risk Analysis
titleprop changes; built output still has all 4 link sets per locale.md) changessrc/lib/markdown-export.tsalready parsestitle={false}; built.mdkeeps the 4 SDK method blocks without a headingDesign Decisions
SDKLinkstreat 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:releasesucceeded. For en / zh-CN / zh-HKtrade-push.html:<h2>false</h2>count 0 (production: 4), 4 SDK link sets present, no stray "SDK Links" heading.trade-push.md: nofalseheading, 4 SDK method blocks.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