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/test-data.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'src/cmd/load-test-data/test-data.yml') 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