title: Jekyll documentation to PDF with TOC
body: <p>I would like to write documentation using <a href="http://github.com/mojombo/jekyll" rel="noreferrer">Jekyll</a> with HTML and PDF outputs. Html can have a navigation but the PDF should have table of contents. Is there a free and easy way to do that?</p>
  
  <p>The HTML part is easy but I would like to use  @media print CSS for making the PDF file.</p>
  
  <p>I have a few ideas how to do this.</p>
  
  <ol>
  <li>Use <a href="http://www.princexml.com/" rel="noreferrer">PrinceXML</a>, unfortunately this is commercial product with a nasty price tag ~$500</li>
  <li>Use <a href="http://code.google.com/p/wkhtmltopdf/" rel="noreferrer">WKHTMLTOPDF</a></li>
  <li>Use <a href="https://github.com/bhollis/maruku" rel="noreferrer">Maruku</a>, since it is possible to do a PDF conversion using it</li>
  </ol>
  
  <p>I would like to have multiple pages HTML and single page PDF with a TOC. Any suggestions? </p>
  
  <p>Btw. <a href="http://buildr.apache.org/contributing.html" rel="noreferrer">Buildr</a> has solved this problem using <a href="http://www.princexml.com/" rel="noreferrer">PrinceXML</a>.</p>