Generate pdf from cppreference
doc source outfile
source:first html
outfile:output html path
Require
C++ standard:c++17
Libraries:
- gumbo-query (That requires gumbo-parser)
- wkhtmltox
Note:gumbo-query and this executable must link to the same c++ standard library.
Target
test
: Run unit test
time
:Run unit test(show run time)
run
:Run executable.
Option
RUN
:Whether add a target to run executable.
UNIT_TEST
:Whether build unit tests.
Var
RUN_HTML
:The path to html file for run
target.
RUN_PDF
:The path to output pdf file for run
target.
build command
mkdir build
cd build
cmake ../cppreference-pdf .
make