Files
w3cjandClaude Opus 5.5 4e39416bb5 docs: section icons, OS tab icons, an experimental badge, ✓ and ✗
The docs' first page is a card per section (section-card on Hextra's
cards), each with its pixel icon: rocket, wrench, locked, cube, prompt,
gear and the GitHub mark. The install and os-tabs shortcodes put the
Apple icon before macOS and the penguin before Linux (os-tab-name.html).
The experimental shortcode (flask, Departure Mono, the site's blue) marks
smolvm and Docker on their pages, in the backends' comparison table and on
the home page's Backends card. yes and no put a check or a cross before a
table cell's word, in the comparison table and Installing's install
script column. Writing docs describes each.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 15:40:25 -07:00

21 lines
1.2 KiB
HTML

{{- /* Markdown in a tab per operating system, on Hextra's tabs, as the install shortcode shows its commands:
{{< os-tabs >}}{{< os-tab name="macOS" >}}…{{< /os-tab >}}{{< os-tab name="Linux" >}}…{{< /os-tab >}}{{< /os-tabs >}}.
macOS's tab comes first and is selected, and _partials/install-os.html selects Linux's, the second, for
Linux visitors. Each tab's name gets its system's icon from _partials/os-tab-name.html. */ -}}
{{- $_ := .Inner -}}
{{- $tabs := slice -}}
{{- range $i, $tab := .Store.Get "tabs" -}}
{{- $tabs = $tabs | append (dict "id" (add $i 1) "name" $tab.name "content" $tab.content "selected" (eq $i 0)) -}}
{{- end -}}
{{- if or (ne (len $tabs) 2) (ne (index $tabs 0).name "macOS") (ne (index $tabs 1).name "Linux") -}}
{{- errorf "os-tabs: want a macOS tab, then a Linux tab (%s)" .Position -}}
{{- end -}}
{{- $named := slice -}}
{{- range $tabs -}}
{{- $named = $named | append (merge . (dict "name" (partial "os-tab-name.html" (dict "name" .name "position" $.Position)))) -}}
{{- end -}}
<div class="devvm-install">
{{ partial "shortcodes/tabs" (dict "tabs" $named "enableSync" false "id" (printf "os-tabs-%d" .Ordinal)) }}
{{ partial "install-os.html" . }}
</div>