This is an automated email from the ASF dual-hosted git repository.

yzheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new aed63069b7 Fix site layouts for API doc when using released version 
(#3951)
aed63069b7 is described below

commit aed63069b78725c702d4addba9203b5a0e5a465a
Author: Yong Zheng <[email protected]>
AuthorDate: Sun Mar 8 17:38:53 2026 -0500

    Fix site layouts for API doc when using released version (#3951)
---
 site/layouts/partials/openapiUrl.html      | 6 +++++-
 site/layouts/shortcodes/redoc-polaris.html | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/site/layouts/partials/openapiUrl.html 
b/site/layouts/partials/openapiUrl.html
index 12ab54f6de..12bc686f5a 100644
--- a/site/layouts/partials/openapiUrl.html
+++ b/site/layouts/partials/openapiUrl.html
@@ -19,9 +19,13 @@ under the License.
 {{- $ver := partial "releaseVersion.html" . -}}
 {{- $spec := ( .Get 0 ) -}}
 {{- $url := "" -}}
+{{- $incubating := "" -}}
+{{- if lt $ver "1.4.0" -}}
+{{- $incubating = "-incubating" -}}
+{{- end -}}
 {{- if eq $ver "[unreleased]" -}}
 {{- $url = printf 
"https://github.com/apache/polaris/raw/refs/heads/main/spec/%s"; $spec }}
 {{- else -}}
-{{- $url = printf 
"https://github.com/apache/polaris/raw/refs/tags/polaris-%s/spec/%s"; $ver $spec 
}}
+{{- $url = printf 
"https://github.com/apache/polaris/raw/refs/tags/apache-polaris-%s%s/spec/%s"; 
$ver $incubating $spec }}
 {{- end -}}
 {{- return $url -}}
\ No newline at end of file
diff --git a/site/layouts/shortcodes/redoc-polaris.html 
b/site/layouts/shortcodes/redoc-polaris.html
index 1b2bdbe34d..f646930574 100644
--- a/site/layouts/shortcodes/redoc-polaris.html
+++ b/site/layouts/shortcodes/redoc-polaris.html
@@ -18,10 +18,14 @@ Copied from Docsy shortcodes/redoc.html.
 {{- $ver := partial "releaseVersion.html" . -}}
 {{- $spec := ( .Get 0 ) -}}
 {{- $url := "" -}}
+{{- $incubating := "" -}}
+{{- if lt $ver "1.4.0" -}}
+{{- $incubating = "-incubating" -}}
+{{- end -}}
 {{- if eq $ver "[unreleased]" -}}
 {{- $url = printf 
"https://raw.githubusercontent.com/apache/polaris/refs/heads/main/spec/%s"; 
$spec }}
 {{- else -}}
-{{- $url = printf 
"https://raw.githubusercontent.com/apache/polaris/refs/tags/polaris-%s/spec/%s"; 
$ver $spec }}
+{{- $url = printf 
"https://raw.githubusercontent.com/apache/polaris/refs/tags/apache-polaris-%s%s/spec/%s";
 $ver $incubating $spec }}
 {{- end -}}
 
 <!-- CSS style overrides for Redoc API docs -->

Reply via email to