nimibook
nimibook copied to clipboard
feature: a show source button or similar
- not a feature that is present in original mdbook but it is something which makes a lot of sense: the idea is to have a way to directly show the source code of the page as we do in nimib
- since this is not native in mdbook what needs to be decided is how this elements should appear in the interface: a button? where?
Agreed, always nice to show the simple source code behind an impressive page :) Here are my two cents:
Both on mobile and desktop we have some space at the bottom of the screen. So we could place it like we do in ordinary nimib. Maybe we would want to center it here though. The other option I can come up with is adding a button to the header, but it gets a bit too crammed on mobile if you have a longer book title.
On mobile it could be here. Definitely header is already packed

Yes, that should work :+1: I looked at the HTML template and we will have to add the desktop button separately as the chapter buttons along with their parent div is hidden on desktop.
I have given this a small try, but the CSS-part of my brain isn't collaborating... So I'll skip this in the current PR, and we'll see if I revisit this later (or if someone else does it before me).