Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.13 KB

File metadata and controls

31 lines (21 loc) · 1.13 KB

code2pdf

Clone GitHub repositories and compile their source code into a single, well-formatted PDF via LaTeX.

Requirements

Usage

Edit the REPOS list in code2pdf.py, then run:

python code2pdf.py

The output is written to output.pdf in the current directory.

Configuration

Edit the constants near the top of code2pdf.py:

Variable Description
REPOS Default list of repo URLs to include
OUTPUT_PDF Output filename (default: output.pdf)
INCLUDE_EXTENSIONS Set of file extensions to include; empty = include all readable files
SKIP_DIRS Directory names to skip (e.g. node_modules, .git)
MAX_FILE_BYTES Max file size to include (default: 2 MB)