mdbook/tests/gui
Eric Huss 5282083dec Fix heading nav with folded chapters
This fixes an issue when folding is enabled. The folding was not
properly hiding the sub-chapters because it was assuming it could hide
the next list element. However, the heading nav was the next list
element, so the remaining chapters remained visible.

The solution required some deeper changes to how the chapters were
organized in the sidebar. Instead of nested chapters being a list
element *sibling*, the nested chapter's `ol` is now a *child* of its
parent chapter. This makes it much easier to just hide everything
without regard of the exact sibling order.

This required wrapping the chapter title and the toggle chevron inside a
span so that the flex layout could be localized to just those elements,
and allow the following `ol` elements to lay out regularly.

Closes https://github.com/rust-lang/mdBook/issues/2880
2025-10-20 17:31:40 -07:00
..
books Fix heading nav with folded chapters 2025-10-20 17:31:40 -07:00
heading-nav-collapsed.goml Fix heading nav with folded chapters 2025-10-20 17:31:40 -07:00
heading-nav-current-to-bottom.goml Move heading-nav gui tests to a dedicated book 2025-10-15 07:00:35 -07:00
heading-nav-empty.goml Move heading-nav gui tests to a dedicated book 2025-10-15 07:00:35 -07:00
heading-nav-folded.goml Fix heading nav with folded chapters 2025-10-20 17:31:40 -07:00
heading-nav-large-intro.goml Fix heading nav with folded chapters 2025-10-20 17:31:40 -07:00
heading-nav-markup.goml Fix heading nav with folded chapters 2025-10-20 17:31:40 -07:00
heading-nav-normal-intro.goml Fix heading nav with folded chapters 2025-10-20 17:31:40 -07:00
heading-nav-unusual-levels.goml Fix heading nav with folded chapters 2025-10-20 17:31:40 -07:00
help.goml Add a basic book for GUI tests 2025-10-15 07:00:35 -07:00
highlighting.goml Add a syntax-highlighting GUI test 2025-10-15 07:00:35 -07:00
move-between-pages.goml Add a general-purpose summary GUI book 2025-10-15 07:00:35 -07:00
redirect.goml Move redirect gui tests to its own book 2025-10-15 07:00:35 -07:00
runner.rs Simplify GUI runner 2025-10-15 14:05:23 -07:00
search.goml Add a gui test book for search 2025-10-15 07:00:35 -07:00
sidebar-active.goml Add a general-purpose summary GUI book 2025-10-15 07:00:35 -07:00
sidebar-nojs.goml Add a basic book for GUI tests 2025-10-15 07:00:35 -07:00
sidebar.goml Add a general-purpose summary GUI book 2025-10-15 07:00:35 -07:00
theme.goml Add a general-purpose summary GUI book 2025-10-15 07:00:35 -07:00