From aab2339f68716cf6d8b4d5840ac9a1a1287e5235 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Thu, 1 Oct 2026 18:42:34 -0400 Subject: [PATCH] site: under an option, the images and the data folders, nothing else The line read as narration: a label, colored dots for app versus database, a count of jails. Now it is the image tags and the host folders, in one line. --- dbuild/templates/README.mkdocs.j2 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/dbuild/templates/README.mkdocs.j2 b/dbuild/templates/README.mkdocs.j2 index 8b49fce..5d164b2 100644 --- a/dbuild/templates/README.mkdocs.j2 +++ b/dbuild/templates/README.mkdocs.j2 @@ -1,12 +1,13 @@ {% extends "README.j2" %} -{#- What an option runs, before any YAML: one chip per container or jail, - then the count and the host folders. Markdown, not a raw HTML block: a - block inside a tab gets paragraph-wrapped and magiclink turns a - placeholder's @ into a GitHub mention; a code span keeps it as text. #} +{#- What an option runs, before any YAML: the images, then the host folders + the data lands in. Plain words; markdown, not a raw HTML block (a block + inside a tab gets paragraph-wrapped and magiclink turns a placeholder's + @ into a GitHub mention; a code span keeps it as text). #} {%- macro you_get(o, parts, unit) -%} -{%- set running = parts | rejectattr("kind", "equalto", "none") | list -%} -**You get**{% for p in parts %} {{ p.name }} {{ p.image }}{% endfor %} {{ running | length }} {{ unit }}{{ "" if running | length == 1 else "s" }}{% if o.folders %}, data in {% for f in o.folders %}`{{ f }}`{{ ", " if not loop.last }}{% endfor %}{% endif %} +{%- set imgs = [] -%} +{%- for p in parts %}{% if p.kind == "none" %}{% set _ = imgs.append("your own " ~ p.name | replace("your database", "database")) %}{% else %}{% set _ = imgs.append("`" ~ p.image ~ "`") %}{% endif %}{% endfor -%} +{{ imgs | join(" · ") }}{% if o.folders %} — data in {% for f in o.folders %}`{{ f }}`{{ ", " if not loop.last }}{% endfor %}{% endif %} {: .you-get } {%- endmacro %}