This is an automated email from the ASF dual-hosted git repository.
yufei 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 c3f06813 Site: Navigate the site to swagger redirection (#950)
c3f06813 is described below
commit c3f0681354c8e31f31de5ecf6a69ee68d680aa38
Author: Prashant Singh <[email protected]>
AuthorDate: Wed Feb 5 15:30:45 2025 -0800
Site: Navigate the site to swagger redirection (#950)
---
site/hugo.yaml | 7 -------
site/layouts/shortcodes/redoc-polaris.html | 3 ++-
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/site/hugo.yaml b/site/hugo.yaml
index 83f08167..4d5fb0bc 100644
--- a/site/hugo.yaml
+++ b/site/hugo.yaml
@@ -252,10 +252,3 @@ privacy:
youtube:
privacyEnhanced: true
-server:
- headers:
- for: /**
- values:
- Content-Security-Policy: >2
- script-src 'self' https://cdn.jsdelivr.net 'unsafe-inline'
'unsafe-eval' https://analytics.apache.org/ https://cdn.jsdelivr.net
-
diff --git a/site/layouts/shortcodes/redoc-polaris.html
b/site/layouts/shortcodes/redoc-polaris.html
index 4db3e5ca..bbd0fc42 100644
--- a/site/layouts/shortcodes/redoc-polaris.html
+++ b/site/layouts/shortcodes/redoc-polaris.html
@@ -115,4 +115,5 @@ Redoc element with link to your OpenAPI definition
<!--
Link to Redoc JavaScript on CDN for rendering standalone element
-->
-<script
src="https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js"></script>
+
+<meta http-equiv="refresh" content="0; url=http://editor.swagger.io/?url={{
$url }}" />