Skip to content

Normalize malformed admonition labels to > **Note:** form - #23385

Merged
ti-chi-bot[bot] merged 1 commit into
pingcap:release-8.5from
yahonda:en-normalize-admonition-labels
Aug 6, 2026
Merged

Normalize malformed admonition labels to > **Note:** form#23385
ti-chi-bot[bot] merged 1 commit into
pingcap:release-8.5from
yahonda:en-normalize-admonition-labels

Conversation

@yahonda

@yahonda yahonda commented Jul 30, 2026

Copy link
Copy Markdown
Member

What is changed, added or deleted? (Required)

Normalize two malformed admonition-label variants to the dominant > **Note:** form. Both variants deviate from the majority form (1007 occurrences) and from every other admonition on their own page:

  • >**Note:** — no space after > (11 occurrences)
  • > **Note**: — colon outside the bold span (13 occurrences)

These 24 labels (Note / Warning / Tip) across 15 files are normalized to > **Note:** (space after >, colon inside the bold).

Why the colon-less form > **Note** (83 occurrences) is intentionally left unchanged: it is the exact form used by the author templates under resources/doc-templates/ (> **Note**, > **Warning**), so it is a sanctioned house style rather than a defect. Touching it would contradict the templates, so it is out of scope here.

Background

This is a preparatory cleanup for the Japanese translation branch (i18n-ja-release-8.5). While reverting some machine-translated Japanese callout labels (> **注記** / > **警告** / > **ヒント**) back to English so they render as localized callout boxes, the Japanese side is matched 1:1 against the English source at the same position. The malformed English variants above made that 1:1 matching ambiguous. Rather than mirror the inconsistency into the translation, we decided to normalize the English source first, then redo the Japanese-side change against a consistent base. The earlier Japanese-side PR (#23384) was closed and will be retried after this English normalization lands.

Which TiDB version(s) do your changes apply to? (Required)

  • master (the latest development version)
  • v8.5 (TiDB 8.5 versions)
  • v8.4 (TiDB 8.4 versions)
  • v8.3 (TiDB 8.3 versions)
  • v8.2 (TiDB 8.2 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)

What is the related PR or file link(s)?

AI agent involvement

  • The changes in this PR were primarily made by an AI agent on behalf of the PR author.

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

Summary by CodeRabbit

  • Documentation
    • Standardized Markdown formatting for Tip and Note callouts across database compatibility, SQL, TiDB Cloud, backup, migration, monitoring, auditing, and node group documentation.
    • Improved consistency of blockquote spacing, indentation, and bold label punctuation without changing instructions or technical content.

@ti-chi-bot ti-chi-bot Bot added missing-translation-status This PR does not have translation status info. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 30, 2026
@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 2f526d22-a616-4417-8733-62955e7cb814

📥 Commits

Reviewing files that changed from the base of the PR and between 3eb7e70 and 86f9f09.

📒 Files selected for processing (15)
  • mysql-compatibility.md
  • sql-statements/sql-statement-add-index.md
  • sql-statements/sql-statement-create-index.md
  • sql-statements/sql-statement-create-table.md
  • sync-diff-inspector/sync-diff-inspector-overview.md
  • tidb-cloud/backup-and-restore-serverless.md
  • tidb-cloud/backup-and-restore.md
  • tidb-cloud/data-service-api-key.md
  • tidb-cloud/migrate-from-mysql-using-data-migration.md
  • tidb-cloud/migrate-incremental-data-from-mysql-using-data-migration.md
  • tidb-cloud/monitor-new-relic-integration.md
  • tidb-cloud/premium/backup-and-restore-premium.md
  • tidb-cloud/tidb-cloud-auditing.md
  • tidb-cloud/tidb-node-group-management.md
  • tidb-cloud/tidb-node-group-overview.md

📝 Walkthrough

Walkthrough

Standardized Markdown Note and Tip callout formatting across SQL, compatibility, sync-diff-inspector, and TiDB Cloud documentation. Changes adjust blockquote spacing, indentation, and colon placement without changing instructional content.

Changes

Documentation callout formatting

Layer / File(s) Summary
Note and Tip callout normalization
mysql-compatibility.md, sql-statements/*, sync-diff-inspector/*, tidb-cloud/*
Updated callout blockquote spacing, indentation, and bold-label punctuation for consistent Markdown rendering.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested labels: contribution, release-note-none

Suggested reviewers: qiancai, ti-chi-bot

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: normalizing malformed admonition labels to the standard format.
Description check ✅ Passed The description explains the changes, scope, rationale, affected version, related PR, and AI involvement, and completes the required sections.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Two label variants deviate from both the dominant `> **Note:**` form (1007
occurrences) and every other admonition on their own page:

- `>**Note:**` — no space after `>` (11 occurrences)
- `> **Note**:` — colon outside the bold span (13 occurrences)

Normalize these 24 labels (Note/Warning/Tip) to `> **Note:**` (space after
`>`, colon inside the bold) across 15 files.

The colon-less form `> **Note**` (83 occurrences) is intentionally left
unchanged: it is the form used by the author templates under
resources/doc-templates/, so it is a sanctioned style rather than a defect.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@yahonda
yahonda force-pushed the en-normalize-admonition-labels branch from 3eb7e70 to 86f9f09 Compare August 3, 2026 00:16
@ti-chi-bot ti-chi-bot Bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Aug 6, 2026
@ti-chi-bot

ti-chi-bot Bot commented Aug 6, 2026

Copy link
Copy Markdown

[LGTM Timeline notifier]

Timeline:

  • 2026-08-06 09:05:25.952335417 +0000 UTC m=+2691711.988430473: ☑️ agreed by qiancai.

@qiancai qiancai added the translation/no-need No need to translate this PR. label Aug 6, 2026
@ti-chi-bot ti-chi-bot Bot removed the missing-translation-status This PR does not have translation status info. label Aug 6, 2026
@qiancai qiancai self-assigned this Aug 6, 2026
@qiancai

qiancai commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

/approve

@qiancai qiancai added the lgtm label Aug 6, 2026
@ti-chi-bot

ti-chi-bot Bot commented Aug 6, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiancai

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added the approved label Aug 6, 2026
@ti-chi-bot
ti-chi-bot Bot merged commit 2fec26d into pingcap:release-8.5 Aug 6, 2026
10 of 11 checks passed
@yahonda
yahonda deleted the en-normalize-admonition-labels branch August 7, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm needs-1-more-lgtm Indicates a PR needs 1 more LGTM. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. translation/no-need No need to translate this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants