mdBook icon indicating copy to clipboard operation
mdBook copied to clipboard

Folding icon in the sidebar no longer working

Open stradig opened this issue 10 months ago • 4 comments

Problem

The folding icon in the sidebar stopped working in 0.4.41. You can still click on the text, but clicking on the icon no longer works. This is the case both for opening and closing a section.

Image

Steps

  1. Enabled folding in book.toml [output.html] fold.enable = true fold.level = 0
  2. Build the book
  3. Click on the folding icon, nothing will happen. In 0.4.40 it still worked, in 0.4.41 it stopped working. I tested up to version 0.4.44

Possible Solution(s)

No response

Notes

No response

Version

mdbook v0.4.43

stradig avatar Jan 29 '25 15:01 stradig

Did you update your index.hbs file as mentioned in the 0.4.41 changelog? https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0441

shenef avatar Jan 29 '25 17:01 shenef

Thanks for the fast answer! We do not have a custom index.hbs. But I also tried putting the one from 0.4.43 in . That did not change anything.

stradig avatar Jan 30 '25 15:01 stradig

Note: I'm a coworker of @stradig

We have a custom theme/book.js file that was not updated with the changes in https://github.com/rust-lang/mdBook/commit/68e3572278ff9d0b922f8bac4ec7d32632264dbd. Applying the patch fixed the issue.

You can go ahead and close this.

Pluggi avatar Feb 20 '25 13:02 Pluggi

Thank you! Closing.

stradig avatar Feb 20 '25 13:02 stradig