Skip to content

doc: adjusting formatting when printing

Rodrigo Muino Tomonari requested to merge github/fork/tlhunter/print-css into master

As a weekend project I built a PDF generator for the Node.js docs. This project required making small changes to the documentation CSS for aesthetics. Take a look at these PDF files to view the CSS changes in action.

Here's an overview of these changes:

  • reduce page margin
  • remove emphasis from links as they're unclickable
    • i.e. color, and underlines when in deprecated block
  • hides expandable > history items since they're collapsed and unreadable
    • alternative: I can make these always expanded instead
  • removes horizontal scrollbar from bottom of print output
  • reduce stability rectangle sizes
    • normally they're full width, now they're as wide as the text
  • shrink all text and headlines slightly
    • they're now closer to what you'd find in a book
  • hide ToC
    • it takes up many many pages and is ultimately unclickable
Checklist

Merge request reports

Loading