From 396873dc78077ea23dfe07a0fb43e14f9611d3db Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Sat, 15 Jan 2022 13:37:07 -0500 Subject: [PATCH] fix(docs): support for zero behaviour [skip ci] --- source/app/metrics/metadata.mjs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/app/metrics/metadata.mjs b/source/app/metrics/metadata.mjs index 56935ad8..c21b5d3c 100644 --- a/source/app/metrics/metadata.mjs +++ b/source/app/metrics/metadata.mjs @@ -328,7 +328,7 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) { if (o.global) cell.push("⏭️ Global option
") if (o.testing) - cell.push("🔧 For development") + cell.push("🔧 For development
") if (!Object.keys(previous?.inputs ?? {}).includes(option)) cell.push("✨ On master/main
") if (o.extras) @@ -336,13 +336,15 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) { cell.push(`type: ${type}`) if ("format" in o) cell.push(`(${Array.isArray(o.format) ? o.format[0] : o.format})`) - cell.push("
") if ("min" in o) cell.push(`(${o.min} ≤`) if (("min" in o)||("max" in o)) cell.push(`${"min" in o ? "" : "("}𝑥${"max" in o ? "" : ")"}`) if ("max" in o) cell.push(`≤ ${o.max})`) + cell.push("
") + if ("zero" in o) + cell.push(`zero behaviour: ${o.zero}
`) if (("default" in o)&&(o.default !== "")) { let text = o.default if (o.default === ".user.login")