mdBook icon indicating copy to clipboard operation
mdBook copied to clipboard

add the help (?) button to the menu

Open szabgab opened this issue 5 months ago • 8 comments

Make it easier for the first-time reader to find the available keyboard shortcuts.

  • connect to the help popup trigger code
  • add the configuration option to show the help icon
  • only set the event listener if the icon is there

szabgab avatar Jul 22 '25 08:07 szabgab

:umbrella: The latest upstream changes (possibly 21f2435182e4a80c0bd0e3184ce36f7a57529d08) made this pull request unmergeable. Please resolve the merge conflicts.

rustbot avatar Aug 18 '25 18:08 rustbot

Sounds like a good idea. Why adding an option to disable it though?

GuillaumeGomez avatar Aug 31 '25 14:08 GuillaumeGomez

Why not? Some authors might want a "cleaner menu"

szabgab avatar Aug 31 '25 14:08 szabgab

And I am still trying to figure out how to include the svg version of the icon

szabgab avatar Aug 31 '25 14:08 szabgab

Why not? Some authors might want a "cleaner menu"

Sure, but then the overall coherency is reduced.

And I am still trying to figure out how to include the svg version of the icon

You can use the one in rustdoc.

GuillaumeGomez avatar Aug 31 '25 14:08 GuillaumeGomez

rustdoc

quencs avatar Aug 31 '25 16:08 quencs

rustdoc

quencs avatar Sep 08 '25 12:09 quencs

@quencs Please stop.

ehuss avatar Sep 15 '25 00:09 ehuss