# ghwikipp: make\_offline\_archive: newer pandoc uses different command line args.

**URL:** <https://discourse.libsdl.org/t/ghwikipp-make-offline-archive-newer-pandoc-uses-different-command-line-args/57154>\
**Category:** SDL Commits\
**Created:** [January 21, 2025, 7:50pm UTC](https://discourse.libsdl.org/t/ghwikipp-make-offline-archive-newer-pandoc-uses-different-command-line-args/57154 "2025-01-21T19:50:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [January 21, 2025, 7:50pm UTC](https://discourse.libsdl.org/t/ghwikipp-make-offline-archive-newer-pandoc-uses-different-command-line-args/57154/1 "2025-01-21T19:50:17Z")

</div>

> <https://github.com/libsdl-org/ghwikipp/commit/c79c5e56cd0d36eb9b384908a12cfcf0778236a2>

```diff
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++;

```
