-
Notifications
You must be signed in to change notification settings - Fork 56
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
Expand H2 to display H3 in floating TOC #2474
Comments
It's possible to adjust this code in config.toml so that
This will display the H3 headings in the floating TOC. However, there are a couple formatting problems to solve:
|
If possible, it would be helpful to make the H3 optional in the floating TOC. For some pages, the H3 headings will just clutter the TOC without much navigation improvement. For example, the H3s in the API docs are identical within H2s, and H2 alone is probably more helpful because it removes the H3 clutter from the floating TOC. Other pages, like the RBAC reference, seem like they are so long that a floating TOC with H3s could become too long itself. |
Description
#2544 includes a change to add a floating TOC that lists all of the H2 headings on each page.
We would like to add functionality to the floating TOC so that when a user clicks on one of the H2 headings, that H2 heading expands in the TOC to list the H3 headings it contains.
Category
This is an issue with:
Affected pages
All
Expected behavior
The floating TOC lists all H2 headings on the page and when a user clicks one, it expands to list all the H3 headings it contains.
Current behavior
The floating TOC lists H2 headings on the page, but no H3 headings.
The text was updated successfully, but these errors were encountered: