docs-v2/layouts/partials/api/tab-panels.html

32 lines
930 B
HTML

{{/*
API Reference Tab Panels (DEPRECATED)
This partial is kept for backward compatibility.
The new architecture renders content directly in layouts:
- layouts/api/list.html: Tag pages with operations list
- layouts/api/single.html: Individual operation pages with RapiDoc
For conceptual pages (isConceptual: true), renders tag description content.
For operational pages, renders the API documentation via RapiDoc.
*/}}
{{ $isConceptual := .Params.isConceptual | default false }}
{{ if $isConceptual }}
{{/* Conceptual Page - Display tag description content only */}}
<section class="api-conceptual-content">
{{ with .Content }}
{{ . }}
{{ else }}
{{ with .Params.tagDescription }}
{{ . | markdownify }}
{{ end }}
{{ end }}
</section>
{{ else }}
{{/* Operations Page - RapiDoc renderer */}}
<section class="api-operations-panel">
{{ partial "api/rapidoc.html" . }}
</section>
{{ end }}