From 51bbccba59f74aa9b3bd79d8f2fdab56cd340a7c Mon Sep 17 00:00:00 2001 From: Ben Cotton Date: Tue, 17 Dec 2024 10:08:18 -0500 Subject: [PATCH] Present criteria as not-tables This improves small-screen readability and removes/moves extraneous information for easier skimming. Signed-off-by: Ben Cotton --- cmd/template.md | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/cmd/template.md b/cmd/template.md index 8222233..6b28323 100644 --- a/cmd/template.md +++ b/cmd/template.md @@ -15,11 +15,32 @@ For more information on the project and to make contributions, visit the [GitHub ## Criteria Overview -| ID | Maturity Level | Category | Criteria | -| --- | -------------- | -------- | -------- | +* [Level 1](#level-1) +* [Level 2](#level-2) +* [Level 3](#level-3) + +### Level 1 + +{{- range .Criteria }} +{{if eq .MaturityLevel 1}} +[{{ .ID }}]({{ .ID | asLink }}) — {{ .CriteriaText | addLinks }} +{{ end }} +{{- end }} + +### Level 2 {{- range .Criteria }} -| [{{ .ID }}]({{ .ID | asLink }}) | {{ .MaturityLevel }} | {{ .Category }} | {{ .CriteriaText | collapseNewlines | addLinks }} | +{{if eq .MaturityLevel 2}} +[{{ .ID }}]({{ .ID | asLink }}) — {{ .CriteriaText | addLinks }} +{{ end }} +{{- end }} + +### Level 3 + +{{- range .Criteria }} +{{if eq .MaturityLevel 3}} +[{{ .ID }}]({{ .ID | asLink }}) — {{ .CriteriaText | addLinks }} +{{ end }} {{- end }} ## Criteria Details @@ -28,9 +49,15 @@ For more information on the project and to make contributions, visit the [GitHub ### {{ .ID }} -**Criteria:** +**Criterion:** {{ .CriteriaText | addLinks }} +**Maturity Level:** +{{ .MaturityLevel }} + +**Category:** +{{ .Category }} + **Objective:** {{ .Objective | addLinks}}