mdBook icon indicating copy to clipboard operation
mdBook copied to clipboard

Add a logo to the navigation bar of the HTML rendered book

Open scattenlaeufer opened this issue 3 years ago • 2 comments

I added the option to add an image as logo to the navigation bar by adding a configuration parameter to the book table of the book.toml. This resolves #877

I also thought about adding the option of a project logo to the bottom of the navigation sidebar, but wanted to wait for feedback to this first edit before adding more code.

scattenlaeufer avatar Jun 24 '21 12:06 scattenlaeufer

I'm wondering, would it be possible to make this part of the SUMMARY instead of making it a configuration option? That is, before the chapter list, allow an image to be specified. It could be constrained to only specific events for now (like images and maybe HTML?). That would alleviate the issues with needing to specify alt text, image width/height, and other details. I'm a little concerned about trying to specify things in TOML since specifying details like those can be difficult.

ehuss avatar Sep 28 '21 02:09 ehuss

Hi. Is there any update on this PR? It's a neat addition

montyly avatar Feb 24 '23 09:02 montyly