summaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2023-04-15 20:47:50 +0200
committerBrian Picciano <mediocregopher@gmail.com>2023-04-15 20:57:39 +0200
commit68f3215df6e2e4f345076dd5b20b9bf5867353cf (patch)
tree0f858dbaebbfeb3a88497adf4a3e0b16ca7cc26c /src/cmd
parentb5e1103caf5e8225176ba74a6f4f0a9b2bde7192 (diff)
Add support for http loading files from an asset archive
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/load-test-data/archive.tgzbin0 -> 3386081 bytes
-rw-r--r--src/cmd/load-test-data/test-data.yml31
2 files changed, 31 insertions, 0 deletions
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
--- /dev/null
+++ b/src/cmd/load-test-data/archive.tgz
Binary files 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