From 67c1e98f0bdead7e4bee300deb005441474719a7 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 8 Jan 2026 15:19:31 +0100 Subject: [PATCH] api: include alternate link for swagger / OpenAPI spec The API docs are generated dynamically, which prevents them from being crawled / indexed. Provide a link to the swagger / OpenAPI spec that's used to generate the page, so that that content can be used as alternative. Signed-off-by: Sebastiaan van Stijn --- layouts/_default/api.html | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/layouts/_default/api.html b/layouts/_default/api.html index 572a52fb4148..44149fcaa6c5 100644 --- a/layouts/_default/api.html +++ b/layouts/_default/api.html @@ -1,7 +1,7 @@ - + {{ $specURL := urls.Parse (printf "/%s%s.yaml" .File.Dir .File.ContentBaseName) }} {{ .Title }} @@ -9,6 +9,13 @@ + +