docs: Fix callout formatting - #6549
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (146)
📝 WalkthroughWalkthroughThe pull request standardizes documentation callouts across framework guides and core guides. It converts legacy note, tip, warning, and important text to Markdown admonition syntax without changing the documented guidance. ChangesDocumentation admonition standardization
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
I spotted another instance on https://tanstack.com/table/latest/docs/guide/data, and there are likely several more. Moving to draft until I get the chance to include all of them. |
|
I see 251 instances across 125 files where callouts use the wrong formatting (matched with @KevinVandy That's going to be a rather large PR. Should I include those fixes anyway or would you prefer to make the changes yourself? Or would you like to see a solution that coerces the blocks into the expected format during build, without changing the actual files? Edit: Here's a code search link. |
Converts all 341 remaining old-style callouts (> **Note:**, > NOTE:, > **NOTE**:, > Tip:, > **Warning:**, etc.) across the docs to the GitHub markdown alert syntax ([!NOTE], [!TIP], [!WARNING], [!IMPORTANT]) that tanstack.com renders as styled callouts. Also fixes one pre-existing alert in client-side-vs-server-side.md that had its content on the same line as the marker, and trailing whitespace on the alert marker in the svelte quick-start. Qualified callouts with custom titles (TypeScript Note, Framework note, Naming note) are intentionally left as plain blockquotes since the alert syntax does not support custom titles. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
||
| > Note: a drag emits one change per cell boundary the pointer crosses, so `onCellSelectionChange` fires repeatedly during a drag. If you are syncing selection to a server or a URL, debounce it or commit on `mouseup`. | ||
| > [!NOTE] | ||
| > a drag emits one change per cell boundary the pointer crosses, so `onCellSelectionChange` fires repeatedly during a drag. If you are syncing selection to a server or a URL, debounce it or commit on `mouseup`. |
There was a problem hiding this comment.
Nit: Should start with an uppercase letter (there are a few more places).
🎯 Changes
The callout at the start of https://tanstack.com/table/latest/docs/framework/svelte/quick-start currently uses a plain blockquote, which causes it to get wrapped in additional quotes.
This PR matches the markup to what is used in the devtools docs, with the assumption that it is also supported in the table docs.
The change was made through GitHub's editor and not tested locally.
✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit