From ac68e447ff2f887f2ff95d0358e167808ea75733 Mon Sep 17 00:00:00 2001 From: Craig Osterhout Date: Mon, 24 Nov 2025 14:30:48 -0800 Subject: [PATCH] hub: add base url to api paths (#22870) ## Description Display the base url specifically for Hub API and Registry API docs. Is this enough, or do we also need to write something about it in the description at the top? ![image](https://github.com/user-attachments/assets/666a4605-c131-4593-8a67-132481785a3e) ## Related issues or tickets ENGDOCS-2748 ## Reviews - [ ] Editorial review --------- 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 dec745a218..572a52fb41 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 or (strings.HasPrefix .RelPermalink "/reference/api/hub/") (strings.HasPrefix .RelPermalink "/reference/api/registry/") }} + + {{ else }} + + {{ end }}