Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As reported by @stof, there's a problem with some Configuration Reference documents.
Problem
h4
andh5
headings are styled the same on symfony.comThis makes hard to understand options like this: https://symfony.com/doc/current/reference/configuration/framework.html#not-compromised-password
enabled
andendpoint
are sub-keys ofnot_compromised_password
whilestatic_method
is a sibling. Very confusing.Solution
I don't want to make
h5
even smaller or different in any way. I think that needing to useh5
reveals a complexity problem in your page.So, let's fix this differently. And I think there could be a very simple solution.
Look at the page TOC:
The "useless"
Configuration
title adds a heading level in the entire page, pushing some elements toh5
level. If we remove it, all the sub-headings go up one level automatically. This will probably be enough.Note that the perfect solution would be to remove
Configuration
heading and update ALL the other headings to use the same heading markers (---
,~~~
, etc.) as the rest of Symfony Docs.Doing this would be a merge conflict nightmare. Luckily, reStructuredText format doesn't care about the specific markers used. The first one it finds is h2, the second one is h3 and so on. So, I think it's fine to use different markers just on these reference pages.
what do you think?