Export to PDF (or print) a whole GitHub project


#1

What is the best way to easily export to PDF a whole Github project?
I’ve been looking for a few days and I wasn’t able to find any easy way to export a whole GitHub project to PDF or print it. The are lost of programs or extensions where you can paste code into it and it generates a PDF with syntax highlighting but I don’t want to do that for tens or hundreds of separate files in a project.

Syntax highlighting would be nice but it’s not necessary, just being able to print a whole project at once without printing file by file would be very nice.


#2

As far as I know there is no pre-existing feature for this. Someone may have written a library to do it, but I’ve not come across it.

Your best bet would probably be to write a script that walks a file tree to write to the pdf.