Skip to content

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

Open
yahonda wants to merge 1 commit into
pingcap:release-8.5from
yahonda:en-normalize-admonition-labels
Open

Normalize malformed admonition labels to > **Note:** form#23385
yahonda wants to merge 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.

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>
@ti-chi-bot

ti-chi-bot Bot commented Jul 30, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign kissmydb for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found 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 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: d0835cf9-3c15-4141-8880-bd5f3eadb1bc

📥 Commits

Reviewing files that changed from the base of the PR and between 2e1cff6 and 3eb7e70.

📒 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, area/tidb-cloud

Suggested reviewers: qiancai

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed Title is concise and describes the main change: normalizing malformed admonition labels.
Description check ✅ Passed The description fills the required sections and includes the version, related PR, and AI involvement details.
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

missing-translation-status This PR does not have translation status info. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant