Skip to content

Fix deprecation notice for Docusaurus 3.10.0 strict admonition syntax - #1423

Merged
sserrata merged 2 commits into
PaloAltoNetworks:mainfrom
omonk:main
Apr 14, 2026
Merged

sserrata merged 2 commits into
PaloAltoNetworks:mainfrom
omonk:main

Conversation

@omonk

@omonk omonk commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Description

Updates the format of the createAdmonition used within createDeprecationNotice to use the new syntax required in Docusaurus v3.10.0.

Motivation and Context

Docusaurus changed the available formats when writing admonition titles

-:::warning Pay Attention
+:::warning[Pay Attention]

 Content

 :::

Source

How Has This Been Tested?

Run changes locally

Screenshots (if appropriate)

Without changes

image

With changes

image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes if appropriate.
  • All new and existing tests passed.

@omonk

omonk commented Apr 14, 2026

Copy link
Copy Markdown
Contributor Author

From my checks of the rest of the codebase this is the only instance where :::[type] [title] occurs

@sserrata sserrata left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the fix.

@github-actions

github-actions Bot commented Apr 14, 2026 •

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit a648e4f):

https://docusaurus-openapi-36b86--pr1423-g8xjar5g.web.app

(expires Tue, 21 Apr 2026 15:27:16 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: bf293780ee827f578864d92193b8c2866acd459f

@omonk

omonk commented Apr 14, 2026

Copy link
Copy Markdown
Contributor Author

@sserrata - I didn't push some changes to the branch which would be nice to include. It adds a test spec to render the x-deprecated-description.

Want me to push up another commit before we merge?
image

@sserrata

Copy link
Copy Markdown
Member

Want me to push up another commit before we merge?

Sure, let's do it. Will be helpful for catching visual regressions in the future, thanks!

@omonk

omonk commented Apr 14, 2026

Copy link
Copy Markdown
Contributor Author

@sserrata - great, good to go

@sserrata
sserrata merged commit 2b42766 into PaloAltoNetworks:main Apr 14, 2026
10 checks passed
@omonk

omonk commented Apr 14, 2026

Copy link
Copy Markdown
Contributor Author

@sserrata thanks very much, do you know when this might get out into a v5.0.1? We've got a Docusaurus v3.10.0 upgrade waiting in the wings which will need this bump

@sserrata sserrata mentioned this pull request Apr 14, 2026
4 tasks
sserrata added a commit that referenced this pull request May 1, 2026
…1445)

Docusaurus 3.10's strict admonition parser silently drops the box when
the title uses the legacy space-separated form (`:::info TIP`). Switch
to the bracketed form (`:::info[TIP]`) in versioning.mdx, sidebars.mdx,
and the cos OpenAPI spec. Generated .api.mdx files already pick up the
matching plugin-side fix from PR #1423 on regeneration.

This branch was previously deployed

2 inactive deployments
preview — a648e4f0 Deployed Apr 14, 2026 by omonk via Deploy #2078
default — a648e4f0 Deployed Apr 14, 2026 by omonk via Analyze Unsafe (javascript) #2078
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.

2 participants