From 22122b8c2aa6973f09c821f1384a60926665e2d4 Mon Sep 17 00:00:00 2001 From: Craig Date: Wed, 18 Jun 2025 13:04:30 -0700 Subject: [PATCH 1/2] hub: display base url in api path Signed-off-by: Craig --- layouts/_default/api-baseof.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/_default/api-baseof.html b/layouts/_default/api-baseof.html index a629f15c6bb..bbd4e094cf2 100644 --- a/layouts/_default/api-baseof.html +++ b/layouts/_default/api-baseof.html @@ -50,7 +50,11 @@ {{ $specURL := urls.Parse (printf "/%s%s.yaml" .File.Dir .File.ContentBaseName) }} - + {{ if strings.HasPrefix .RelPermalink "/reference/api/hub/" }} + + {{ else }} + + {{ end }} From 240f443263f3d4250eec187244bb37d547f65070 Mon Sep 17 00:00:00 2001 From: Craig Date: Wed, 18 Jun 2025 13:12:26 -0700 Subject: [PATCH 2/2] include registry api docs Signed-off-by: Craig --- layouts/_default/api-baseof.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/api-baseof.html b/layouts/_default/api-baseof.html index bbd4e094cf2..7b1f1e7be2a 100644 --- a/layouts/_default/api-baseof.html +++ b/layouts/_default/api-baseof.html @@ -50,7 +50,7 @@ {{ $specURL := urls.Parse (printf "/%s%s.yaml" .File.Dir .File.ContentBaseName) }} - {{ if strings.HasPrefix .RelPermalink "/reference/api/hub/" }} + {{ if or (strings.HasPrefix .RelPermalink "/reference/api/hub/") (strings.HasPrefix .RelPermalink "/reference/api/registry/") }} {{ else }}