-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Book should be printable #21901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@vrinek Are you trying to print a single page or the whole book? |
I'm only trying to print a single page for now. Sadly I have failed to find where The changes I want to do are showcased here: https://github.com/rust-lang/rust/blob/master/src/doc/trpl/rust-book.css. If someone could point me to the right place where I should apply these changes, I would be grateful. |
Safari on OS X acts the same way as shown in @sfackler's screenshot, so maybe it's WebKit-related? |
Even if WebKit/Blink was able to replicate my Firefox screenshot, I'd say there still needs to be better print styling defaults. For example, we probably won't need the sidebar. |
(and we have a few other issues open about print CSS too)
|
If you try to print a longer chapter, you'll see that you get only the first page (Firefox). That's more than bad styling :) |
@steveklabnik If you can easily find the other print CSS related issues, it might benefit this issue for the sake of deduplicating issues. The only I found was this one |
@frewsxcv that was the one on the top of my head, maybe it's just that one |
@steveklabnik I bet you meant https://github.com/rust-lang/rust/blob/master/src/rustbook/css.rs (the one you linked was javascript). I'll fix it up and send a PR. |
err yes, I did. Nice catch 😅 |
PR ready: #21962 |
PR #21962 merged so this should be fixed and closable. |
Currently if you try printing the book it comes out blank.
There is something missing in the CSS. I am already on it and have a hunch what it might be but wanted to post it here in case someone else wants to give it a hand or even carry it further (make it pretty perhaps?).
The text was updated successfully, but these errors were encountered: