From b7d638efb695b547da53522559e3e3eab0daa69a Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sat, 25 Jul 2026 12:05:54 -0700 Subject: [PATCH] Fix nginx docs validation pid path --- docs/test_codeblocks_manifest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/test_codeblocks_manifest.py b/docs/test_codeblocks_manifest.py index 816625ef..6a83cee7 100644 --- a/docs/test_codeblocks_manifest.py +++ b/docs/test_codeblocks_manifest.py @@ -240,7 +240,11 @@ def validate_non_running(snippet: Snippet, disposition: str) -> None: assert nginx.is_file() and os.access(nginx, os.X_OK) with tempfile.TemporaryDirectory(prefix="archivebox-docs-nginx-") as temp: config = Path(temp) / "nginx.conf" - config.write_text(f"events {{}}\nhttp {{\nserver {{\nlisten 8080;\n{snippet.code}\n}}\n}}\n") + config.write_text( + f"pid {temp}/nginx.pid;\n" + f"events {{}}\n" + f"http {{\nserver {{\nlisten 8080;\n{snippet.code}\n}}\n}}\n", + ) result = subprocess.run( [nginx, "-t", "-c", config, "-p", temp], text=True,