-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Uniformise caution
or warning
directive usage
#20371
Labels
good first issue
Ideal for your first contribution! (some Symfony experience may be required)
Hack Day
hasPR
A Pull Request has already been submitted for this issue.
Comments
I am in favor of changing caution to warning, so we end up with: info, (tip), warning and danger. I would also want to have a doctor rule afterwards, keeping the docs clean from caution then. WDYT? |
I'll work on this during the #SymfonyHackday. |
TimoBakx
added a commit
to TimoBakx/symfony-docs
that referenced
this issue
Dec 7, 2024
Fixes symfony#20371 Both blocks are currently rendered identically. Keeping only one of the two makes it easier to contribute. Some blocks were elevated to danger.
OskarStark
added
good first issue
Ideal for your first contribution! (some Symfony experience may be required)
Hack Day
labels
Dec 7, 2024
TimoBakx
added a commit
to TimoBakx/symfony-docs
that referenced
this issue
Dec 7, 2024
Fixes symfony#20371 Both blocks are currently rendered identically. Keeping only one of the two makes it easier to contribute. Some blocks were elevated to danger.
TimoBakx
added a commit
to TimoBakx/symfony-docs
that referenced
this issue
Dec 7, 2024
Fixes symfony#20371 Both blocks are currently rendered identically. Keeping only one of the two makes it easier to contribute. Some blocks were elevated to danger.
wouterj
added a commit
that referenced
this issue
Dec 7, 2024
This PR was merged into the 6.4 branch. Discussion ---------- Replaced `caution` directive by `warning` Fixes #20371 Both blocks are currently rendered identically. Keeping only one of the two makes it easier to contribute. Some blocks were elevated to danger, as they describe a security risk. Commits ------- 3849004 Replaced caution blocks with warning
OskarStark
changed the title
Uniformise
Uniformise Dec 7, 2024
caution
or warning
admonition usagecaution
or warning
directive usage
TimoBakx
added a commit
to TimoBakx/symfony-docs
that referenced
this issue
Dec 7, 2024
TimoBakx
added a commit
to TimoBakx/symfony-docs
that referenced
this issue
Dec 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
good first issue
Ideal for your first contribution! (some Symfony experience may be required)
Hack Day
hasPR
A Pull Request has already been submitted for this issue.
Hi !
While working on a PR I did some research on layout details and realized that the
caution
orwarning
admonitions are rendered the same way in Symfony Doc. See Doctrine (this is warning) and Lock (this is caution) as exemplesI also found #19181 about about a previous work on
caution
anddanger
and IMO there is no particular need to introduce more granularity in the admonitions that are available by differentiatingcaution
andwarning
So I propose to remove one of the two syntaxes, maybe
warning
because it's the least used in the documentationIt's probably not a very important topic but looks good one to make documentation writing simpler and more understandable
The text was updated successfully, but these errors were encountered: