From 68f3215df6e2e4f345076dd5b20b9bf5867353cf Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 15 Apr 2023 20:47:50 +0200 Subject: Add support for http loading files from an asset archive --- src/cmd/load-test-data/archive.tgz | Bin 0 -> 3386081 bytes src/cmd/load-test-data/test-data.yml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 src/cmd/load-test-data/archive.tgz (limited to 'src/cmd') diff --git a/src/cmd/load-test-data/archive.tgz b/src/cmd/load-test-data/archive.tgz new file mode 100644 index 0000000..9fd2d20 Binary files /dev/null and b/src/cmd/load-test-data/archive.tgz differ diff --git a/src/cmd/load-test-data/test-data.yml b/src/cmd/load-test-data/test-data.yml index 36e009f..40cfa6e 100644 --- a/src/cmd/load-test-data/test-data.yml +++ b/src/cmd/load-test-data/test-data.yml @@ -163,5 +163,36 @@ published_posts: body: | This page is almost empty. + - id: markdown-archive-test + title: Markdown Archive Test + description: Test loading assets from an archive (tgz) file + format: md + body: | + + This page contains images which are loaded from within an archive file which has been uploaded as a single asset. + + There should be 4 images. + + {{ Image "archive.tgz/1.jpg" }} + {{ Image "archive.tgz/2.jpg" }} + {{ Image "archive.tgz/foo/3.jpg" }} + {{ Image "archive.tgz/foo/4.jpg" }} + + - id: gemtext-archive-test + title: Gemtext Archive Test + description: Test loading assets from an archive (tgz) file + format: gmi + body: | + + This page contains images which are loaded from within an archive file which has been uploaded as a single asset. + + There should be 4 images. + + {{ Image "archive.tgz/1.jpg" "First" }} + {{ Image "archive.tgz/2.jpg" "Second" }} + {{ Image "archive.tgz/foo/3.jpg" "Third" }} + {{ Image "archive.tgz/foo/4.jpg" "Fourth" }} + assets: galaxy.jpg: ./galaxy.jpg + archive.tgz: ./archive.tgz -- cgit v1.2.3