Skip to content

Commit 5993934

Browse files
committed
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>
1 parent 824a2d5 commit 5993934

6 files changed

Lines changed: 13 additions & 8 deletions

File tree

content/manuals/dhi/explore/build-process.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ dependencies. When a package update is detected (for example, a security patch
5151
for a library), Docker automatically identifies and rebuilds all images within
5252
the support window that use that package.
5353

54-
### Customization changes {{< badge color="blue" text="DHI Enterprise" >}}
54+
### Customization changes {tier="DHI Enterprise"}
5555

5656
{{< summary-bar feature_name="Docker Hardened Images" >}}
5757

@@ -127,7 +127,7 @@ The following diagram shows the base image build flow:
127127
'-------------------' '-------------------' '-------------------' '-------------------'
128128
```
129129

130-
### Customized image pipeline {{< badge color="blue" text="DHI Enterprise" >}}
130+
### Customized image pipeline {tier="DHI Enterprise"}
131131

132132
{{< summary-bar feature_name="Docker Hardened Images" >}}
133133

content/manuals/dhi/features.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,27 +93,27 @@ metadata to ensure transparency and trust:
9393
For organizations with strict security requirements, regulatory demands, or
9494
operational needs, DHI Enterprise delivers additional capabilities.
9595

96-
### Compliance variants {{< badge color="blue" text="DHI Enterprise" >}}
96+
### Compliance variants {tier="DHI Enterprise"}
9797

9898
- FIPS-enabled images: For regulated industries and government systems
9999
- STIG-ready images: Meet DoD Security Technical Implementation Guide requirements
100100

101-
### SLA-backed security {{< badge color="blue" text="DHI Enterprise" >}}
101+
### SLA-backed security {tier="DHI Enterprise"}
102102

103103
- CVE remediation SLA: 7-day SLA for critical and high severity vulnerabilities,
104104
with SLA commitments for other severity levels
105105
- ELS CVE remediation SLA: Extended Lifecycle Support images have SLA commitments
106106
for CVE remediation, even after upstream end-of-life
107107
- Enterprise support: Access to Docker's support team for mission-critical applications
108108

109-
### Customization and control {{< badge color="blue" text="DHI Enterprise" >}}
109+
### Customization and control {tier="DHI Enterprise"}
110110

111111
- Build custom images: Add your own packages, tools, certificates, and configurations
112112
- Secure build infrastructure: Customizations built on Docker's trusted infrastructure
113113
- Full chain of trust: Customized images maintain provenance and cryptographic signing
114114
- Automatic updates: Custom images are automatically rebuilt when base images are patched
115115

116-
### Extended Lifecycle Support {{< badge color="blue" text="DHI Enterprise add-on" >}}
116+
### Extended Lifecycle Support {tier="DHI Enterprise add-on"}
117117

118118
- Post-EOL security coverage: Continue receiving patches for years after upstream support ends
119119
- Continuous compliance: Updated SBOMs, provenance, and signing for audit requirements

hugo_stats.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@
575575
"text-left",
576576
"text-lg",
577577
"text-magenta-light",
578+
"text-md",
578579
"text-sm",
579580
"text-white",
580581
"text-xl",

layouts/_default/_markup/render-heading.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"text" (.Text | safeHTML)
44
"id" (.Attributes.id | default .Anchor)
55
"class" .Attributes.class
6+
"tier" .Attributes.tier
67
)
78
}}

layouts/partials/components/badge.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
<span
1717
class="not-prose {{ index $colors .color }} rounded-sm px-1 text-xs text-white"
1818
>{{ .content }}
19-
</span>
19+
</span>

layouts/partials/heading.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{{ $id := .id | default (anchorize (plainify .text)) }}
2-
<h{{ .level }} class="{{ .class }} scroll-mt-20" id="{{ $id }}">
2+
<h{{ .level }} class="{{ .class }} scroll-mt-20 flex items-center gap-2" id="{{ $id }}">
33
<a class="text-black dark:text-white no-underline hover:underline" href="#{{ $id }}">
44
{{ .text }}
55
</a>
6+
{{- with .tier }}
7+
{{- partial "components/badge.html" (dict "color" "blue" "content" . ) -}}
8+
{{- end }}
69
</h{{ .level }}>

0 commit comments

Comments
 (0)