Skip to content

fix(docs): render method-level deprecated annotation as admonition#2048

Merged
yury-s merged 1 commit into
microsoft:mainfrom
yury-s:fix-41164
Jun 5, 2026
Merged

fix(docs): render method-level deprecated annotation as admonition#2048
yury-s merged 1 commit into
microsoft:mainfrom
yury-s:fix-41164

Conversation

@yury-s
Copy link
Copy Markdown
Member

@yury-s yury-s commented Jun 5, 2026

Summary

  • Method-level deprecated: annotations rendered as plain text instead of a warning box because the generator emitted the unsupported space-form admonition syntax :::warning Deprecated. Switched to the bracket-title form :::warning[Deprecated] used everywhere else (classes, arguments, discouraged).
  • Added codex tab label support, required for the roll to run.
  • Includes a full docs roll.

Fixes microsoft/playwright#41164

Method-level deprecations used the unsupported space-form admonition
syntax (`:::warning Deprecated`), which Docusaurus renders as plain text.
Switch to the bracket-title form (`:::warning[Deprecated]`) used
everywhere else. Includes a full docs roll.

Fixes: microsoft/playwright#41164
@yury-s yury-s merged commit b84a1b0 into microsoft:main Jun 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs]: deprecated doesn't work on method

2 participants