Skip to content

Commit

Permalink
Present criteria as not-tables
Browse files Browse the repository at this point in the history
This improves small-screen readability and removes/moves extraneous
information for easier skimming.

Signed-off-by: Ben Cotton <ben@kusari.dev>
  • Loading branch information
funnelfiasco committed Dec 17, 2024
1 parent 1d065e8 commit 51bbccb
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions cmd/template.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}}
Expand Down

0 comments on commit 51bbccb

Please sign in to comment.