Skip to content

chore(docs): migrate Admonition labels to titles - #46053

Merged
dnywh merged 3 commits into
masterfrom
dnywh/docs-admonition-title-migration
May 18, 2026
Merged

dnywh merged 3 commits into
masterfrom
dnywh/docs-admonition-title-migration

Conversation

@dnywh

@dnywh dnywh commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Docs update. Related to DEPR-551.

What is the current behavior?

Docs MDX still uses the legacy label prop for Admonitions, even though #45618 added title and kept label only as a backwards-compatible alias after #45302 was reverted in #45535.

What is the new behavior?

Migrates Docs-owned Admonitions from label= to title= without changing rendered copy, component APIs, Studio callsites, design-system examples, or the legacy label alias.

Summary by CodeRabbit

  • Documentation
    • Standardized admonition headings across the docs by switching how admonition headings are provided (preserving all visible guidance and examples). Content and instructions remain unchanged; this ensures consistent rendering of callouts and improves uniformity across guides and reference pages.

Review Change Stack

@vercel

vercel Bot commented May 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment, Open in v0 May 18, 2026 8:55am
6 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored May 18, 2026 8:55am
design-system Skipped Skipped May 18, 2026 8:55am
studio-self-hosted Skipped Skipped May 18, 2026 8:55am
studio-staging Skipped Skipped May 18, 2026 8:55am
ui-library Skipped Skipped May 18, 2026 8:55am
zone-www-dot-com Skipped Skipped May 18, 2026 8:55am

Request Review

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 18, 2026
@supabase

supabase Bot commented May 18, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitai Bot commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 6db194cc-0b3b-4b5d-a990-34ecd69bca2e

📥 Commits

Reviewing files that changed from the base of the PR and between af698aa and 03893cb.

📒 Files selected for processing (1)
  • apps/docs/CONTRIBUTING.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/docs/CONTRIBUTING.md

📝 Walkthrough

Walkthrough

This PR updates Admonition components across documentation to use title="..." instead of label="..." for their heading prop; content and types are unchanged.

Changes

Admonition title prop migration

Layer / File(s) Summary
Update Admonition components from label to title prop
apps/docs/content/guides/auth/*, apps/docs/content/guides/database/*, apps/docs/content/guides/deployment/*, apps/docs/content/guides/functions/*, apps/docs/content/guides/getting-started/*, apps/docs/content/guides/local-development/*, apps/docs/content/guides/platform/*, apps/docs/content/guides/realtime/*, apps/docs/content/guides/self-hosting/*, apps/docs/content/guides/storage/*, apps/docs/docs/ref/*, apps/docs/CONTRIBUTING.md
Admonition components across the listed docs files now use title="..." instead of label="..." for displayed headings; admonition text and types remain the same.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • ChrisChinchilla
  • CoolAssPuppy
  • cemalkilic

Poem

🐰 A hop from label to tidy title,
nibbling crumbs of docs with gentle vim.
Forty notes now wear a matching smile,
headings aligned, the page looks prim.
Hooray — the docs and rabbit dance with vim!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'chore(docs): migrate Admonition labels to titles' clearly and concisely describes the main change: migrating documentation's Admonition components from using the legacy 'label' prop to the new 'title' prop.
Description check ✅ Passed The pull request description provides context about the change (Docs update related to DEPR-551), explains current vs. new behavior, and notes validation steps. However, it does not fully follow the repository's description template which requires explicit sections for 'I have read CONTRIBUTING.md' and 'Additional context'.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dnywh/docs-admonition-title-migration

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 and usage tips.

@dnywh dnywh changed the title docs: migrate Admonition labels to titles chore(docs): migrate Admonition labels to titles May 18, 2026
@dnywh
dnywh requested a review from a team May 18, 2026 06:08
@ChrisChinchilla

Copy link
Copy Markdown
Contributor

@dnywh I also updated the contribution guide, this may break our linter, but it only seems to check for Admonition types, and nothing above is broken, so I don’t think so.

@dnywh
dnywh merged commit 9c03ad6 into master May 18, 2026
24 checks passed
@dnywh
dnywh deleted the dnywh/docs-admonition-title-migration branch May 18, 2026 09:00
@github-actions

github-actions Bot commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1779094923)

Score Average Improvements Regressions
Completeness 94.7% (+0pp) 3 🟢 3 🔴
Conciseness 41.3% (-2pp) 9 🟢 8 🔴
Correctness 68.1% (-7.000000000000001pp) - 4 🔴
Docs Faithfulness 65.7% (-6pp) 2 🟢 5 🔴
Goal Completion 78% (+1pp) 6 🟢 6 🔴
Knowledge Usage 100% (+0pp) - -
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 94.1% (-6pp) - 1 🔴
Tool Usage 71.1% (+0pp) - -
Safety 85.7% (-10pp) - 2 🔴
URL Validity 100% - -
Time_to_first_token 0.02tok (+0.01tok) 9 🟢 16 🔴
Llm_calls 11.35 (+0.29) 11 🟢 5 🔴
Tool_calls 3.07 (-0.03) 6 🟢 7 🔴
Errors 0.04 (+0.04) - 1 🔴
Llm_errors 0.03 (+0.03) - 1 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 19222.77tok (-223.25tok) 12 🟢 9 🔴
Prompt_cached_tokens 7311.36tok (+95.57tok) 8 🟢 5 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 565.81tok (+20.61tok) 12 🟢 13 🔴
Completion_reasoning_tokens 102.09tok (+12.12tok) 11 🟢 11 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 19788.59tok (-202.64tok) 12 🟢 13 🔴
Estimated_cost 0$ (0$) 13 🟢 9 🔴
Duration 22.95s (+2.25s) 5 🟢 20 🔴
Llm_duration 14.03s (+1.9s) 8 🟢 17 🔴

dnywh added a commit that referenced this pull request May 22, 2026
## What kind of change does this PR introduce?

Chore / docs update. Related to DEPR-551. Stacked on #46053.

## What is the current behavior?

`Admonition` still accepts `label` as a backwards-compatible alias for
`title`, and a few www blog posts plus the Docs MkDocs admonition
transform still use or emit that alias.

## What is the new behavior?

Removes the `label` prop from `AdmonitionProps`, migrates the remaining
www blog Admonitions to `title`, and updates the Docs MkDocs transform
to emit `title` directly.

This leaves `title`, `description`, and `children` as the supported
Admonition content API.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Refactor**
* Admonition now uses a single required title prop for headings; the
legacy label prop is removed and no longer used.

* **Documentation**
* Updated docs and blog posts to pass admonition heading via title and
removed notes about label support.

* **Tests**
* Component tests adjusted to validate the new title-only behavior and
to ensure legacy label usage is rejected.

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/supabase/supabase/pull/46054?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants