{{/* API Documentation Default Layout Fallback layout for API documentation pages. Delegates to appropriate templates based on page type: - Section pages: Use section.html logic (children listing) - Pages with staticFilePath: Use Hugo-native renderer Note: This template exists as a catch-all but specific templates (api/section.html, api/list.html, api/single.html) should be preferred. */}} {{/* Extract product and version from URL path for download buttons */}} {{/* Example: /influxdb3/clustered/api/ → ["", "influxdb3", "clustered", "api", ""] */}} {{ $pathParts := split .RelPermalink "/" }} {{ $version := "" }} {{ if ge (len $pathParts) 3 }} {{ $version = index $pathParts 2 }} {{ end }} {{/* Section pages without staticFilePath render content directly */}} {{ if and .IsSection (not .Params.staticFilePath) }} {{ partial "header.html" . }} {{ partial "topnav.html" . }}
{{ partial "sidebar.html" . }}

{{ .Title }}

{{ with .Description }}

{{ . }}

{{ end }}
{{/* Dual download buttons for Clustered and Cloud Dedicated */}} {{ if or (eq $version "clustered") (eq $version "cloud-dedicated") }} {{ end }} {{/* SECTION INDEX - Show page content then children listing */}} {{ with .Content }}
{{ . }}
{{ end }} {{/* Always show tag pages from article data */}} {{ partial "api/section-children.html" . }} {{ partial "article/related.html" . }}
{{ partial "footer.html" . }} {{ else }} {{/* Pages with staticFilePath (operation pages) use Hugo-native renderer */}} {{ partial "header.html" . }} {{ partial "topnav.html" . }}
{{ partial "sidebar.html" . }}

{{ .Title }}

{{ with .Description }}

{{ . }}

{{ end }}
{{/* Render API documentation using the configured renderer */}} {{ partial "api/renderer.html" . }}
{{ partial "footer.html" . }} {{ end }}