dhi: use attribute for tier, remove badge shortcode from heading

Create a 'tier' attribute for headings and render it semantically

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson
2025-12-17 12:21:25 +01:00
parent 824a2d5366
commit 599393423f
6 changed files with 13 additions and 8 deletions

View File

@@ -51,7 +51,7 @@ dependencies. When a package update is detected (for example, a security patch
for a library), Docker automatically identifies and rebuilds all images within
the support window that use that package.
### Customization changes {{< badge color="blue" text="DHI Enterprise" >}}
### Customization changes {tier="DHI Enterprise"}
{{< summary-bar feature_name="Docker Hardened Images" >}}
@@ -127,7 +127,7 @@ The following diagram shows the base image build flow:
'-------------------' '-------------------' '-------------------' '-------------------'
```
### Customized image pipeline {{< badge color="blue" text="DHI Enterprise" >}}
### Customized image pipeline {tier="DHI Enterprise"}
{{< summary-bar feature_name="Docker Hardened Images" >}}

View File

@@ -93,12 +93,12 @@ metadata to ensure transparency and trust:
For organizations with strict security requirements, regulatory demands, or
operational needs, DHI Enterprise delivers additional capabilities.
### Compliance variants {{< badge color="blue" text="DHI Enterprise" >}}
### Compliance variants {tier="DHI Enterprise"}
- FIPS-enabled images: For regulated industries and government systems
- STIG-ready images: Meet DoD Security Technical Implementation Guide requirements
### SLA-backed security {{< badge color="blue" text="DHI Enterprise" >}}
### SLA-backed security {tier="DHI Enterprise"}
- CVE remediation SLA: 7-day SLA for critical and high severity vulnerabilities,
with SLA commitments for other severity levels
@@ -106,14 +106,14 @@ operational needs, DHI Enterprise delivers additional capabilities.
for CVE remediation, even after upstream end-of-life
- Enterprise support: Access to Docker's support team for mission-critical applications
### Customization and control {{< badge color="blue" text="DHI Enterprise" >}}
### Customization and control {tier="DHI Enterprise"}
- Build custom images: Add your own packages, tools, certificates, and configurations
- Secure build infrastructure: Customizations built on Docker's trusted infrastructure
- Full chain of trust: Customized images maintain provenance and cryptographic signing
- Automatic updates: Custom images are automatically rebuilt when base images are patched
### Extended Lifecycle Support {{< badge color="blue" text="DHI Enterprise add-on" >}}
### Extended Lifecycle Support {tier="DHI Enterprise add-on"}
- Post-EOL security coverage: Continue receiving patches for years after upstream support ends
- Continuous compliance: Updated SBOMs, provenance, and signing for audit requirements

View File

@@ -575,6 +575,7 @@
"text-left",
"text-lg",
"text-magenta-light",
"text-md",
"text-sm",
"text-white",
"text-xl",

View File

@@ -3,5 +3,6 @@
"text" (.Text | safeHTML)
"id" (.Attributes.id | default .Anchor)
"class" .Attributes.class
"tier" .Attributes.tier
)
}}

View File

@@ -16,4 +16,4 @@
<span
class="not-prose {{ index $colors .color }} rounded-sm px-1 text-xs text-white"
>{{ .content }}
</span>
</span>

View File

@@ -1,6 +1,9 @@
{{ $id := .id | default (anchorize (plainify .text)) }}
<h{{ .level }} class="{{ .class }} scroll-mt-20" id="{{ $id }}">
<h{{ .level }} class="{{ .class }} scroll-mt-20 flex items-center gap-2" id="{{ $id }}">
<a class="text-black dark:text-white no-underline hover:underline" href="#{{ $id }}">
{{ .text }}
</a>
{{- with .tier }}
{{- partial "components/badge.html" (dict "color" "blue" "content" . ) -}}
{{- end }}
</h{{ .level }}>