{{ .Title }}
+ + +Select a group from the left to view its manuals.
+ + + +diff --git a/content/manuals/_index.md b/content/manuals/_index.md index 546324bb8a3..4d8684d7b59 100644 --- a/content/manuals/_index.md +++ b/content/manuals/_index.md @@ -13,6 +13,7 @@ params: - AI - Products - Platform + - Desktop notoc: true open-source: - title: Docker Build diff --git a/content/manuals/ai/mcp-catalog-and-toolkit/_index.md b/content/manuals/ai/mcp-catalog-and-toolkit/_index.md index c91713b27fc..d46f603e8c6 100644 --- a/content/manuals/ai/mcp-catalog-and-toolkit/_index.md +++ b/content/manuals/ai/mcp-catalog-and-toolkit/_index.md @@ -3,7 +3,10 @@ title: Docker MCP Catalog and Toolkit linkTitle: MCP Catalog and Toolkit params: sidebar: - group: AI + group: + - AI + - Products + - Desktop badge: color: blue text: Beta diff --git a/content/manuals/desktop/_index.md b/content/manuals/desktop/_index.md index 4162dcd3950..38b2c0dfd2d 100644 --- a/content/manuals/desktop/_index.md +++ b/content/manuals/desktop/_index.md @@ -6,7 +6,9 @@ keywords: how to use docker desktop, what is docker desktop used for, what does desktop do, using docker desktop params: sidebar: - group: Products + group: + - Products + - Desktop grid: - title: Install Docker Desktop description: | diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 7b06c790c81..b6f88dbccf0 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -50,10 +50,13 @@ Back - {{ block "left" . }} - {{ partial "sidebar/mainnav.html" . }} - {{ partial "sidebar/sections.html" . }} - {{ end }} + {{ block "left" . }} + {{ partial "sidebar/mainnav.html" . }} + {{/* only skip sections.html when we're on exactly /manuals/ */}} + {{ if ne .RelPermalink "/manuals/" }} + {{ partial "sidebar/sections.html" . }} + {{ end }} + {{ end }} diff --git a/layouts/partials/sidebar/sections.html b/layouts/partials/sidebar/sections.html index ff7b3cb0eca..b7ad62da7fe 100644 --- a/layouts/partials/sidebar/sections.html +++ b/layouts/partials/sidebar/sections.html @@ -5,15 +5,46 @@ - Dynamically applies current page highlighting and expanded states. - Handles external links via `Params.sidebar.goto` in `renderSingle`. - Requires `Params.sitemap` and `Params.sidebar` for filtering and behavior. - */ --}} +*/ -}} @@ -30,50 +61,40 @@ {{- template "renderSingle" . }} {{- end }} {{- end }} - {{- range .Params.sidebar.groups }} - + {{- /* grouping, allowing multiple groups per page */}} + {{- range $group := .Params.sidebar.groups }}
{{- end }} - {{ end }} {{/* Recursive template for sidebar items */}} {{ define "renderList" }} {{ $isCurrent := eq page . }} {{ $expanded := or $isCurrent (page.IsDescendant .) }} -