Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docusaurus v3 deprecates :::caution admonition #107

Open
andrew-polk opened this issue Jun 19, 2024 · 0 comments
Open

Docusaurus v3 deprecates :::caution admonition #107

andrew-polk opened this issue Jun 19, 2024 · 0 comments

Comments

@andrew-polk
Copy link
Contributor

See https://docusaurus.io/blog/preparing-your-site-for-docusaurus-v3#admonition-warning.

With v3, you are supposed to use either :::danger or :::warning. :::caution will still show the yellow (caution) admonition, but it is deprecated.
But in v2, :::warning produces the red (danger) admonition.

So, we will probably need to introduce a flag indicating if you are targeting v2 or v3. (Of course, we will likely find there are other important factors depending on which you are targeting when we start testing on v3.

This is not urgent since v3 will continue to support :::caution.

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

No branches or pull requests

1 participant