Add a logo to the navigation bar of the HTML rendered book - #3214
Add a logo to the navigation bar of the HTML rendered book#3214Chocorean wants to merge 19 commits into
Conversation
The logo is placed at the top of the navication sidebar.
|
So it's still waiting for you to fix the review comments, right? |
… sidebar, at fix width of 40% the sidebar width, and actually shows no matter the depth level of the current page
|
I think I am good feature-wise, I'll write some tests next. I am not familiar with goml at all, but I will try to take care of that soon |
There was a problem hiding this comment.
This is a copy of crates/mdbook-html/front-end/images/favicon.svg
Should I replace it with a symlink instead to avoid dups?
|
So if I understand correctly, goml is used here to simulate user input? In that case I assume I should only need to write tests under |
|
It's used for GUI tests more globally. It allows you to query HTML states. It's easier to read than comparing plain HTML. |
|
@GuillaumeGomez I believe it is ready for review Another thing that I am not sure about is, if the logo does not exist, the book will still build without a warning |
|
If it's a local file, we should definitely fail the build. |
…se supporting this claim
|
@GuillaumeGomez I have addressed your comments, and added a
|
|
One question I just stumbled upon: is the logo image copied to the generated book? Because if not, it should (and it should be tested of course :3). |

Supersedes #1584, fixes #877
I have not addressed the comments (I have just rebased the original commits on top of
mainand fixed the failing tests, preserving the original author's contribution):An SVG would be prefered; maybe
mdbook-html/front-end/images/favicon.svgcould be a good candidateAlso there is no test at all at the moment.
Done during rebase
This has not been addressed further ; a simple default value could be
alt="{{ book_title }}"