This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats | |
# Change example.com (server_name) to your website url | |
# Change /path/to/your/root to the correct value | |
server { | |
listen 80; | |
server_name example.com; | |
root /path/to/your/root; | |
index index.html; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wrapper for wkhtmltopdf and pdftk to update links with actual page numbers | |
# TOC entries get leader dots and page number . . . NN | |
# internal links (#id) get [page NN] | |
# written by Phil M Perry | |
# (c) copyright 2015, Phil M Perry | |
# license: GNU Lesser General Public License (LGPL) v3 | |
# | |
use warnings; | |
# it's a quick & dirty job that doesn't have many safeguards. use at your own | |
# risk. anyone is welcome to improve upon it! |