From cc56785695e25288529380cb0a62b0c962c3b48b Mon Sep 17 00:00:00 2001 From: Joseph Turian Date: Sun, 11 Sep 2022 22:11:13 +0200 Subject: [PATCH 1/3] Added standalone dockerfile instructions --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7d422628..4b718230 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ # This is the Dockerfile for ArchiveBox, it bundles the following dependencies: # python3, ArchiveBox, curl, wget, git, chromium, youtube-dl, single-file # Usage: +# git submodule update --init --recursive +# git pull --recurse-submodules # docker build . -t archivebox --no-cache # docker run -v "$PWD/data":/data archivebox init # docker run -v "$PWD/data":/data archivebox add 'https://example.com' From 35a052ae8b004221098f6e75075a7aaf2bd3d252 Mon Sep 17 00:00:00 2001 From: Joseph Turian Date: Sun, 11 Sep 2022 22:13:22 +0200 Subject: [PATCH 2/3] Another comment --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4b718230..5ff97708 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,9 @@ # Multi-arch build: # docker buildx create --use # docker buildx build . --platform=linux/amd64,linux/arm64,linux/arm/v7 --push -t archivebox/archivebox:latest -t archivebox/archivebox:dev +# +# Read more about [developing +# Archivebox](https://github.com/ArchiveBox/ArchiveBox#archivebox-development). FROM python:3.10-slim-bullseye From 2db830c6a8d30be951056dce0f1c0881e83611de Mon Sep 17 00:00:00 2001 From: SnZ <3882467+EsEnZeT@users.noreply.github.com> Date: Sun, 20 Nov 2022 01:51:16 +0100 Subject: [PATCH 3/3] Method typo? Fixes '[Errno 2] No such file or directory' error during add --- archivebox/parsers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/parsers/__init__.py b/archivebox/parsers/__init__.py index 992446ba..c033ab28 100644 --- a/archivebox/parsers/__init__.py +++ b/archivebox/parsers/__init__.py @@ -154,7 +154,7 @@ def save_text_as_source(raw_text: str, filename: str='{ts}-stdin.txt', out_dir: for entry in raw_text.split(): try: - if Path(entry).exists: + if Path(entry).exists(): referenced_texts += Path(entry).read_text() except Exception as err: print(err)