From c79c5e56cd0d36eb9b384908a12cfcf0778236a2 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Tue, 21 Jan 2025 14:49:52 -0500
Subject: [PATCH] make_offline_archive: newer pandoc uses different command
line args.
---
make_offline_archive.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/make_offline_archive.php b/make_offline_archive.php
index 6680155..7fb2a56 100755
--- a/make_offline_archive.php
+++ b/make_offline_archive.php
@@ -56,7 +56,7 @@ function cook_tree_for_offline_html($srcdir, $dstdir)
if ($pid == -1) {
print("FAILED TO FORK!\n");
} else if ($pid == 0) { // child process.
- pcntl_exec('/usr/bin/pandoc', [ '--metadata', "pagetitle=$page", '--self-contained', '-f', $from_format, '-t', 'html', '--css=static_files/ghwikipp.css', '--css=static_files/pandoc.css', '--lua-filter=./pandoc-filter-offline.lua', '-o', $dst, $src ]);
+ pcntl_exec('/usr/bin/pandoc', [ '--metadata', "pagetitle=$page", '--embed-resources', '--standalone', '-f', $from_format, '-t', 'html', '--css=static_files/ghwikipp.css', '--css=static_files/pandoc.css', '--lua-filter=./pandoc-filter-offline.lua', '-o', $dst, $src ]);
exit(1);
} else { // parent process.
$num_children++;