ghwikipp
ghwikipp copied to clipboard
css: tweaks when printing
Hello!
A recent comment in SDL issue 9440 made me think that the wiki's CSS could use some tweaks when "printing" a page — whether we're printing to paper or just output to PDF (which is more likely, I suppose?).
Here are the changes (only when printing):
- font-size is set to 12px (instead of 16px)
- visited links are not in a different colour
- header + footer (+ ".anchorText") are hidden
I did not hide the [ edit | delete | history | feedback | raw ]
line because I could not select it easily. Putting this line in a span or div with a custom class (eg "editButtons") for example would make this easier to do.
"SDL_CreateWindow" page printed as PDF using Safari: SDL3:SDL_CreateWindow - SDL Wiki.pdf
On another note, I'm wondering if outputting the contents of all wiki pages to a single HTML file and trying to output it as PDF from a browser would be a good idea. This would need some changes (such as rewriting links as anchors instead of URL to be able to navigate inside the PDF) but I guess that would fix some problems you had, like code blocks that run off the end of the paper.
I'm trying to tweak the wikiheaders.pl
file, but I don't know perl so this takes time.
Have a good day