{# Building blocks of the product line page: feather icons as inline SVG and a
shell command split into one box per argument. Both use the storefront's
own class names (store-icon, store-cmd), so a skin that styles them
(skin_store) dresses them like the rest of the store, and nothing here
needs another feature's templates. #}
{% set ICON_PATHS = {
"terminal": '',
"copy": '',
"git-branch": '',
"check-circle": '',
"plus": '',
"download": '',
"arrow-right": '',
"alert-triangle": '',
"info": '',
"link": '',
"layers": '',
"list": '',
} %}
{% macro icon(name, size=16) -%}
{%- endmacro %}
{# A shell command with each argument in its own box, so a narrow column
wraps between arguments and never inside one. An argument with a slash is
two boxes, up to and after the last slash, so a DOI or a package too long
for the line breaks after its slash rather than at a hyphen. The same
markup as the marketplace's own command macro. #}
{% macro command(text) -%}
{% for arg in text.split() %}{% if "/" in arg and not arg.endswith("/") %}{% set head = arg.rsplit("/", 1)[0] ~ "/" %}{{ head }}{{ arg[head | length:] }}{% else %}{{ arg }}{% endif %}{% if not loop.last %} {% endif %}{% endfor %}
{%- endmacro %}