You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #102 Fixed the generation of TOCs (javiereguiluz)
This PR was squashed before being merged into the main branch.
Discussion
----------
Fixed the generation of TOCs
In some private tests we saw that a short TOC was displayed in two columns (as if it was a long TOC) whereas a slightly longer TOC was displayed in a single column.
The reason is that we were counting all TOC elements, instead of only the visible elements.
Please note that this PR is almost, but not entirely, correct. I had to hardcode the number of visible TOC levels at `2` (by far, the most common value in Symfony-related docs) but this should instead be obtained dynamically via the `maxdepth` TOC tree option in the RST contents.
Commits
-------
b2e0058 Fixed the generation of TOCs
0 commit comments